#include "components/optimization_guide/core/hints_component_util.h"
#include <string>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/version.h"
#include "components/optimization_guide/core/bloom_filter.h"
#include "components/optimization_guide/core/hints_component_info.h"
#include "components/optimization_guide/core/optimization_filter.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace optimization_guide {
const base::FilePath::CharType kFileName[] = …);
class HintsComponentUtilTest : public testing::Test { … };
TEST_F(HintsComponentUtilTest, RecordProcessHintsComponentResult) { … }
TEST_F(HintsComponentUtilTest, ProcessHintsComponentInvalidVersion) { … }
TEST_F(HintsComponentUtilTest, ProcessHintsComponentInvalidPath) { … }
TEST_F(HintsComponentUtilTest, ProcessHintsComponentInvalidFile) { … }
TEST_F(HintsComponentUtilTest, ProcessHintsComponentNotAConfigInFile) { … }
TEST_F(HintsComponentUtilTest, ProcessHintsComponentSuccess) { … }
TEST_F(HintsComponentUtilTest,
ProcessHintsComponentSuccessNoResultProvidedDoesntCrash) { … }
TEST_F(HintsComponentUtilTest, RecordOptimizationFilterStatus) { … }
TEST_F(HintsComponentUtilTest, ProcessOptimizationFilter) { … }
TEST_F(HintsComponentUtilTest, ProcessOptimizationFilterWithHashedInput) { … }
TEST_F(HintsComponentUtilTest, ProcessOptimizationFilterWithBadNumBits) { … }
TEST_F(HintsComponentUtilTest, ProcessOptimizationFilterWithRegexps) { … }
TEST_F(HintsComponentUtilTest, ProcessOptimizationFilterWithExclusionRegexps) { … }
TEST_F(HintsComponentUtilTest, ProcessOptimizationFilterWithInvalidRegexps) { … }
TEST_F(HintsComponentUtilTest,
ProcessOptimizationFilterInvalidRegexpsOverridesBloomFilterStatus) { … }
TEST_F(
HintsComponentUtilTest,
ProcessOptimizationFilterInvalidExclusionRegexpsOverridesBloomFilterStatus) { … }
TEST_F(HintsComponentUtilTest, ProcessOptimizationFilterWithTooLargeFilter) { … }
TEST_F(HintsComponentUtilTest,
ProcessOptimizationFilterNoResultProvidedDoesntCrash) { … }
TEST_F(HintsComponentUtilTest,
ProcessOptimizationFilterSkipHostSuffixCheckingIsPropagated) { … }
}