chromium/components/shared_highlighting/core/common/shared_highlighting_data_driven_test.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

// Reads |file| into |content|, and converts Windows line-endings to Unix ones.
// Returns true on success.
bool ReadFile(const base::FilePath& file, std::string* content) {}

const base::FilePath GetTestDataDir() {}

const base::FilePath GetInputDir() {}

const base::FilePath GetHtmlDir() {}
}  // namespace

const std::vector<base::FilePath>
SharedHighlightingDataDrivenTest::GetTestFiles() {}

SharedHighlightingDataDrivenTest::SharedHighlightingDataDrivenTest()
    :{}

void SharedHighlightingDataDrivenTest::GenerateResults(const std::string& input,
                                                       std::string* output) {}

}  // namespace shared_highlighting