#include "components/optimization_guide/core/test_hints_component_creator.h"
#include <memory>
#include "base/base64.h"
#include "base/files/file_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "base/version.h"
#include "components/optimization_guide/core/bloom_filter.h"
#include "components/optimization_guide/core/optimization_hints_component_update_listener.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
std::string GetDefaultHintVersionString() { … }
}
namespace optimization_guide {
namespace testing {
TestHintsComponentCreator::TestHintsComponentCreator()
: … { … }
TestHintsComponentCreator::~TestHintsComponentCreator() { … }
optimization_guide::HintsComponentInfo
TestHintsComponentCreator::CreateHintsComponentInfoWithPageHints(
optimization_guide::proto::OptimizationType optimization_type,
const std::vector<std::string>& page_hint_hosts,
const std::string& page_pattern) { … }
base::FilePath TestHintsComponentCreator::GetFilePath(
std::string file_path_suffix) { … }
void TestHintsComponentCreator::WriteConfigToFile(
const base::FilePath& file_path,
const optimization_guide::proto::Configuration& config) { … }
optimization_guide::HintsComponentInfo
TestHintsComponentCreator::WriteConfigToFileAndReturnHintsComponentInfo(
const optimization_guide::proto::Configuration& config) { … }
}
}