#include "components/url_pattern_index/url_rule_test_support.h"
#include <string_view>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace url_pattern_index {
namespace testing {
proto::UrlRule MakeUrlRule(const UrlPattern& url_pattern) { … }
void AddDomains(const std::vector<std::string>& domains,
base::RepeatingCallback<proto::DomainListItem*()> add_domain) { … }
void AddInitiatorDomains(const std::vector<std::string>& initiator_domains,
proto::UrlRule* rule) { … }
void AddRequestDomains(const std::vector<std::string>& request_domains,
proto::UrlRule* rule) { … }
url::Origin GetOrigin(std::string_view origin_string) { … }
bool IsThirdParty(const GURL& url, const url::Origin& first_party_origin) { … }
}
}