#include "components/subresource_filter/core/common/test_ruleset_utils.h"
#include <string_view>
#include <utility>
namespace subresource_filter {
namespace testing {
proto;
namespace {
proto::UrlRule CreateRuleImpl(std::string_view substring,
bool is_allowlist_rule,
bool is_suffix_rule) { … }
proto::UrlRule CreateRuleForDocumentImpl(
std::string_view substring,
int32_t activation_types,
std::vector<std::string> initiator_domains,
bool is_allowlist_rule,
bool is_suffix_rule) { … }
}
proto::UrlRule CreateSubstringRule(std::string_view substring) { … }
proto::UrlRule CreateAllowlistSubstringRule(std::string_view substring) { … }
proto::UrlRule CreateSuffixRule(std::string_view suffix) { … }
proto::UrlRule CreateAllowlistSuffixRule(std::string_view suffix) { … }
proto::UrlRule CreateRuleForDocument(
std::string_view pattern,
int32_t activation_types,
std::vector<std::string> initiator_domains) { … }
proto::UrlRule CreateAllowlistRuleForDocument(
std::string_view pattern,
int32_t activation_types,
std::vector<std::string> initiator_domains) { … }
}
}