chromium/ios/chrome/browser/safety_check/model/BUILD.gn

# Copyright 2023 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("model") {
  sources = [
    "ios_chrome_safety_check_manager.h",
    "ios_chrome_safety_check_manager.mm",
    "ios_chrome_safety_check_manager_observer_bridge.h",
    "ios_chrome_safety_check_manager_observer_bridge.mm",
  ]
  public_deps = [
    ":constants",
    ":utils",
    "//base",
    "//components/keyed_service/core",
    "//components/prefs",
    "//ios/chrome/browser/passwords/model",
    "//ios/chrome/browser/upgrade/model:public",
  ]
  deps = [
    "//components/password_manager/core/browser",
    "//components/password_manager/core/browser/leak_detection:leak_detection",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//components/version_info",
    "//ios/chrome/browser/ntp/shared/metrics:home_metrics",
    "//ios/chrome/browser/omaha/model",
    "//ios/chrome/browser/passwords/model:password_checkup_utils",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/ui/content_suggestions:constants",
    "//ios/chrome/common",
  ]
  frameworks = [ "Foundation.framework" ]
}

source_set("factory") {
  sources = [
    "ios_chrome_safety_check_manager_factory.h",
    "ios_chrome_safety_check_manager_factory.mm",
  ]
  public_deps = [
    "//base",
    "//components/keyed_service/ios",
  ]
  deps = [
    ":model",
    "//components/keyed_service/core",
    "//components/prefs",
    "//ios/chrome/browser/passwords/model",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/public/features",
  ]
}

source_set("constants") {
  sources = [
    "ios_chrome_safety_check_manager_constants.cc",
    "ios_chrome_safety_check_manager_constants.h",
  ]
  public_deps = [ "//base" ]
}

source_set("utils") {
  sources = [
    "ios_chrome_safety_check_manager_utils.h",
    "ios_chrome_safety_check_manager_utils.mm",
  ]
  public_deps = [ "//components/password_manager/core/browser" ]
  deps = [
    ":constants",
    "//base",
    "//ios/chrome/browser/passwords/model",
    "//ios/chrome/browser/passwords/model:password_checkup_utils",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "ios_chrome_safety_check_manager_unittest.mm" ]
  deps = [
    ":constants",
    ":factory",
    ":model",
    ":utils",
    "//base",
    "//base/test:test_support",
    "//components/password_manager/core/browser",
    "//components/password_manager/core/browser:test_support",
    "//components/prefs",
    "//components/prefs:test_support",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//ios/chrome/browser/browser_state/model",
    "//ios/chrome/browser/passwords/model",
    "//ios/chrome/browser/passwords/model:password_checkup_utils",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/sync/model:test_support",
    "//ios/chrome/test:test_support",
    "//ios/web/public/test",
    "//testing/gtest",
  ]
}