blob: eb4d4be7116a7f3fac94b633702f60abafde628e [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <vector>
#include "mojo/public/c/test_support/test_support.h"
namespace mojo {
namespace test {
inline void LogPerfResult(const char* test_name,
double value,
const char* units) {
MojoTestSupportLogPerfResult(test_name, value, units);
// Opens text file relative to the source root for reading.
inline FILE* OpenSourceRootRelativeFile(const std::string& relative_path) {
return MojoTestSupportOpenSourceRootRelativeFile(relative_path.c_str());
// Returns the list of regular files in a directory relative to the source root.
std::vector<std::string> EnumerateSourceRootRelativeDirectory(
const std::string& relative_path);
} // namespace test
} // namespace mojo