chromium/components/subresource_filter/tools/rule_parser/rule_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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 =;

}  // namespace

TEST(RuleTest, DefaultUrlRule) {}

TEST(RuleTest, CanonicalizeUrlPattern) {}

TEST(RuleTest, CanonicalizeDomainList) {}

TEST(RuleTest, UrlRuleToString) {}

TEST(RuleTest, CssRuleToString) {}

}  // namespace subresource_filter