chromium/ios/chrome/browser/ui/settings/password/password_checkup/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("password_checkup") {
  sources = [
    "password_checkup_coordinator.h",
    "password_checkup_coordinator.mm",
    "password_checkup_mediator+Testing.h",
    "password_checkup_mediator.h",
    "password_checkup_mediator.mm",
  ]
  deps = [
    ":password_checkup_ui",
    "//base",
    "//components/password_manager/core/browser",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/passwords/model",
    "//ios/chrome/browser/passwords/model:password_checkup_metrics",
    "//ios/chrome/browser/passwords/model:password_checkup_utils",
    "//ios/chrome/browser/passwords/model/metrics",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/ui/settings/password/password_issues",
    "//ios/chrome/browser/ui/settings/password/reauthentication",
    "//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_delegate",
    "//ios/chrome/browser/ui/settings/password/widget_promo_instructions",
    "//ios/chrome/common:string_util",
    "//ios/chrome/common/ui/reauthentication",
    "//ui/base",
  ]
  public_deps = [ "//components/password_manager/core/browser" ]
}

source_set("password_checkup_ui") {
  sources = [
    "password_checkup_commands.h",
    "password_checkup_consumer.h",
    "password_checkup_view_controller.h",
    "password_checkup_view_controller.mm",
    "password_checkup_view_controller_delegate.h",
  ]
  deps = [
    ":password_checkup_constants",
    "//base",
    "//components/google/core/common",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/passwords/model:password_checkup_metrics",
    "//ios/chrome/browser/passwords/model:password_checkup_utils",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/password/password_checkup/resources",
    "//ios/chrome/common/ui/colors",
    "//ui/base",
  ]
}

source_set("password_checkup_constants") {
  sources = [
    "password_checkup_constants.h",
    "password_checkup_constants.mm",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "password_checkup_coordinator_unittest.mm",
    "password_checkup_mediator_unittest.mm",
    "password_checkup_view_controller_unittest.mm",
  ]
  deps = [
    ":password_checkup",
    ":password_checkup_constants",
    ":password_checkup_ui",
    "//base",
    "//base/test:test_support",
    "//components/affiliations/core/browser:test_support",
    "//components/keyed_service/core",
    "//components/password_manager/core/browser:password_form",
    "//components/password_manager/core/browser:test_support",
    "//components/password_manager/core/common",
    "//components/prefs:test_support",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/affiliations/model",
    "//ios/chrome/browser/passwords/model",
    "//ios/chrome/browser/passwords/model:password_checkup_utils",
    "//ios/chrome/browser/passwords/model:store_factory",
    "//ios/chrome/browser/passwords/model/metrics",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/table_view:test_support",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_ui",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/test:test_support",
    "//ios/chrome/test/app:test_support",
    "//ios/web/public/test",
    "//testing/gtest",
    "//third_party/ocmock",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "password_checkup_egtest.mm" ]
  deps = [
    ":password_checkup_constants",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
    "//ios/chrome/browser/ui/settings/password:eg_test_support",
    "//ios/chrome/browser/ui/settings/password:eg_test_support+eg2",
    "//ios/chrome/browser/ui/settings/password/password_details:password_details_table_view_constants",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ui/base",
  ]
}