| # Copyright 2016 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| static_library("renderer") { |
| sources = [ |
| "filter_utils.cc", |
| "filter_utils.h", |
| "subresource_filter_agent.cc", |
| "subresource_filter_agent.h", |
| "unverified_ruleset_dealer.cc", |
| "unverified_ruleset_dealer.h", |
| "web_document_subresource_filter_impl.cc", |
| "web_document_subresource_filter_impl.h", |
| ] |
| configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| public_deps = [ |
| "//base", |
| "//components/subresource_filter/content/mojom", |
| "//components/subresource_filter/core/common", |
| "//components/subresource_filter/core/mojom", |
| "//components/url_pattern_index/proto:url_pattern_index", |
| "//content/public/renderer", |
| "//mojo/public/cpp/bindings", |
| "//third_party/blink/public:blink_headers", |
| "//url", |
| ] |
| deps = [ |
| "//components/subresource_filter/content/common", |
| "//content/public/common", |
| "//ipc", |
| "//third_party/blink/public:blink", |
| "//third_party/blink/public/common", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "subresource_filter_agent_unittest.cc" ] |
| deps = [ |
| ":renderer", |
| "//base", |
| "//base/test:test_support", |
| "//components/subresource_filter/content/mojom", |
| "//components/subresource_filter/core/common", |
| "//components/subresource_filter/core/common:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//third_party/blink/public:blink", |
| "//url", |
| ] |
| if (is_ios) { |
| deps += [ "//components/test:subresource_filter_test_bundle_data" ] |
| } |
| } |