#include "testing/data_driven_testing/data_driven_test.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/strings/string_util.h"
#include "base/threading/thread_restrictions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/re2/src/re2/re2.h"
namespace testing {
namespace {
bool ReadFile(const base::FilePath& file, std::string* content) { … }
bool WriteFile(const base::FilePath& file, const std::string& content) { … }
void StripComments(std::string* content) { … }
}
void DataDrivenTest::RunDataDrivenTest(
const base::FilePath& input_directory,
const base::FilePath& output_directory,
const base::FilePath::StringType& file_name_pattern) { … }
void DataDrivenTest::RunOneDataDrivenTest(
const base::FilePath& test_file_name,
const base::FilePath& output_directory,
bool is_expected_to_pass) { … }
base::FilePath DataDrivenTest::GetInputDirectory() { … }
base::FilePath DataDrivenTest::GetOutputDirectory() { … }
DataDrivenTest::DataDrivenTest(
const base::FilePath& test_data_directory,
const base::FilePath::StringType& feature_directory,
const base::FilePath::StringType& test_name)
: … { … }
DataDrivenTest::~DataDrivenTest() { … }
}