chromium/components/subresource_filter/content/renderer/BUILD.gn

# 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 = [
    "subresource_filter_agent.cc",
    "subresource_filter_agent.h",
    "unverified_ruleset_dealer.cc",
    "unverified_ruleset_dealer.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",
    "//url",
  ]
  deps = [
    "//components/subresource_filter/content/shared/common",
    "//components/subresource_filter/content/shared/renderer",
    "//content/public/common",
    "//ipc",
    "//third_party/blink/public:blink",
    "//third_party/blink/public:blink_headers",
    "//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" ]
  }
}