#include "components/shared_highlighting/core/common/shared_highlighting_data_driven_test.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/json/json_reader.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "base/values.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_MAC)
#include "base/apple/foundation_util.h"
#endif
namespace shared_highlighting {
namespace {
const base::FilePath::CharType kFeatureName[] = …);
const base::FilePath::CharType kTestName[] = …);
const base::FilePath::CharType kFileNamePattern[] = …);
const char kHtmlFileNameField[] = …;
const char kStartParentIdField[] = …;
const char kStartOffsetInParentField[] = …;
const char kStartTextOffsetField[] = …;
const char kEndParentIdField[] = …;
const char kEndOffsetInParentField[] = …;
const char kEndTextOffsetField[] = …;
const char kSelectedTextField[] = …;
const char kHighlightTextField[] = …;
const std::string kTestSuccess = …;
const std::string kTestFailure = …;
bool ReadFile(const base::FilePath& file, std::string* content) { … }
const base::FilePath GetTestDataDir() { … }
const base::FilePath GetInputDir() { … }
const base::FilePath GetHtmlDir() { … }
}
const std::vector<base::FilePath>
SharedHighlightingDataDrivenTest::GetTestFiles() { … }
SharedHighlightingDataDrivenTest::SharedHighlightingDataDrivenTest()
: … { … }
void SharedHighlightingDataDrivenTest::GenerateResults(const std::string& input,
std::string* output) { … }
}