chromium/ios/chrome/browser/safe_browsing/model/tailored_security/BUILD.gn

# Copyright 2022 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("tailored_security") {
  sources = [
    "chrome_tailored_security_service.h",
    "chrome_tailored_security_service.mm",
    "tailored_security_service_factory.h",
    "tailored_security_service_factory.mm",
    "tailored_security_tab_helper.h",
    "tailored_security_tab_helper.mm",
  ]
  deps = [
    ":infobar_delegates",
    "//components/infobars/core",
    "//components/keyed_service/ios",
    "//components/prefs",
    "//components/safe_browsing/core/browser/tailored_security_service",
    "//components/safe_browsing/core/common",
    "//components/safe_browsing/core/common:safe_browsing_policy_handler",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//components/signin/public/identity_manager",
    "//ios/chrome/browser/infobars/model",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/sync/model",
    "//ios/components/security_interstitials/safe_browsing",
  ]
}

source_set("infobar_delegates") {
  sources = [
    "tailored_security_service_infobar_delegate.h",
    "tailored_security_service_infobar_delegate.mm",
  ]

  deps = [
    "//components/infobars/core",
    "//components/safe_browsing/core/browser/tailored_security_service",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/components/security_interstitials/safe_browsing",
    "//ios/web/public",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "tailored_security_service_factory_unittest.mm",
    "tailored_security_tab_helper_unittest.mm",
  ]

  deps = [
    ":tailored_security",
    "//base/test:test_support",
    "//components/safe_browsing/core/browser/tailored_security_service",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//components/sync_preferences:sync_preferences",
    "//components/sync_preferences:test_support",
    "//ios/chrome/browser/infobars/model",
    "//ios/chrome/browser/safe_browsing/model/tailored_security/test",
    "//ios/chrome/browser/shared/model/prefs:browser_prefs",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/signin/model",
    "//ios/web/public/test",
    "//testing/gmock",
    "//testing/gtest",
  ]
}