chromium/components/subresource_filter/core/common/test_ruleset_utils.cc

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

#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) {}

}  // namespace

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) {}

}  // namespace testing
}  // namespace subresource_filter