chromium/ios/chrome/browser/web_state_list/model/web_usage_enabler/BUILD.gn

# 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("web_usage_enabler") {
  sources = [
    "web_usage_enabler_browser_agent.h",
    "web_usage_enabler_browser_agent.mm",
    "web_usage_enabler_browser_agent_observer.h",
    "web_usage_enabler_browser_agent_observer_bridge.h",
    "web_usage_enabler_browser_agent_observer_bridge.mm",
  ]
  public_deps = [ "//ios/web/public" ]
  deps = [
    "//base",
    "//components/keyed_service/core",
    "//components/keyed_service/ios",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/web_state_list",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "web_usage_enabler_browser_agent_unittest.mm" ]

  deps = [
    ":web_usage_enabler",
    "//base",
    "//base/test:test_support",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/web",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//url",
  ]
}