# 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.
source_set("support") {
sources = [
"rule_stream.cc",
"rule_stream.h",
"ruleset_converter.cc",
"ruleset_converter.h",
"ruleset_format.cc",
"ruleset_format.h",
]
public_deps = [ "//components/url_pattern_index/proto:url_pattern_index" ]
deps = [
"../rule_parser",
"//base",
"//components/subresource_filter/core/common",
"//third_party/protobuf:protobuf_lite",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"rule_stream_unittest.cc",
"ruleset_converter_unittest.cc",
"ruleset_test_util.cc",
"ruleset_test_util.h",
]
deps = [
":support",
"../rule_parser",
"//base",
"//base/test:test_support",
"//components/url_pattern_index:test_support",
"//components/url_pattern_index/proto:url_pattern_index",
"//testing/gmock",
"//testing/gtest",
]
}