#include "components/optimization_guide/core/optimization_filter.h"
#include "components/optimization_guide/core/bloom_filter.h"
#include "components/optimization_guide/proto/hints.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace optimization_guide {
namespace {
std::unique_ptr<BloomFilter> CreateBloomFilter() { … }
std::unique_ptr<RegexpList> CreateRegexps(
const std::vector<std::string>& regexps) { … }
TEST(OptimizationFilterTest, TestMatchesBloomFilter) { … }
TEST(OptimizationFilterTest, TestMatchesBloomFilterUnknownFormat) { … }
TEST(OptimizationFilterTest, TestMatchesHashedBloomFilter) { … }
TEST(OptimizationFilterTest, TestMatchesBloomFilterChecksRegexpFirst) { … }
TEST(OptimizationFilterTest, TestMatchesBloomFilterSkipHostSuffixChecking) { … }
TEST(OptimizationFilterTest, TestMatchesRegexp) { … }
TEST(OptimizationFilterTest, TestMatchesRegexpFragment) { … }
TEST(OptimizationFilterTest, TestMatchesRegexpClearsAuth) { … }
TEST(OptimizationFilterTest, TestMatchesRegexpInvalid) { … }
TEST(OptimizationFilterTest, TestMatchesRegexpInvalidGURL) { … }
TEST(OptimizationFilterTest, TestMatchesMaxSuffix) { … }
TEST(OptimizationFilterTest, TestMatchesMinSuffix) { … }
}
}