#include "components/ip_protection/common/url_matcher_with_bypass.h"
#include <optional>
#include <vector>
#include "base/strings/strcat.h"
#include "components/privacy_sandbox/masked_domain_list/masked_domain_list.pb.h"
#include "net/base/schemeful_site.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace ip_protection {
namespace {
MaskedDomainList;
struct MatchTest { … };
}
class UrlMatcherWithBypassTest : public ::testing::Test { … };
TEST_F(UrlMatcherWithBypassTest, PartitionMapKey) { … }
TEST_F(UrlMatcherWithBypassTest, BuildBypassMatcher_Dedupes) { … }
TEST_F(UrlMatcherWithBypassTest, AddRulesWithoutBypass_BypassCheckIsSkipped) { … }
TEST_F(UrlMatcherWithBypassTest,
AddRulesWithoutBypass_BypassCheckIsNotSkipped) { … }
class UrlMatcherWithBypassMatchTest : public testing::TestWithParam<MatchTest> { … };
TEST_P(UrlMatcherWithBypassMatchTest, Match) { … }
const std::vector<MatchTest> kMatchTests = …;
INSTANTIATE_TEST_SUITE_P(…);
}