#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/subresource_filter/tools/rule_parser/rule.h"
#include <stddef.h>
#include <memory>
#include "components/subresource_filter/tools/rule_parser/rule_options.h"
#include "components/subresource_filter/tools/rule_parser/rule_parser.h"
#include "components/url_pattern_index/proto/rules.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace subresource_filter {
namespace {
constexpr auto kScript = …;
constexpr auto kImage = …;
constexpr auto kPopup = …;
constexpr auto kWebsocket = …;
constexpr auto kAnchorNone = …;
}
TEST(RuleTest, DefaultUrlRule) { … }
TEST(RuleTest, CanonicalizeUrlPattern) { … }
TEST(RuleTest, CanonicalizeDomainList) { … }
TEST(RuleTest, UrlRuleToString) { … }
TEST(RuleTest, CssRuleToString) { … }
}