chromium/ios/chrome/browser/ui/settings/password/passwords_in_other_apps/BUILD.gn

# Copyright 2021 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("passwords_in_other_apps") {
  sources = [
    "passwords_in_other_apps_coordinator.h",
    "passwords_in_other_apps_coordinator.mm",
    "passwords_in_other_apps_mediator.h",
    "passwords_in_other_apps_mediator.mm",
  ]
  deps = [
    ":passwords_in_other_apps_ui",
    "//base",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/ui/settings/password/reauthentication",
    "//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_delegate",
    "//ios/chrome/browser/ui/settings/utils",
    "//ios/public/provider/chrome/browser/password_auto_fill:password_auto_fill_api",
  ]
}

source_set("passwords_in_other_apps_ui") {
  sources = [
    "passwords_in_other_apps_consumer.h",
    "passwords_in_other_apps_view_controller.h",
    "passwords_in_other_apps_view_controller.mm",
    "passwords_in_other_apps_view_controller_delegate.h",
  ]
  deps = [
    ":constants",
    "//base",
    "//components/password_manager/core/common",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings/resources",
    "//ios/chrome/browser/ui/settings/utils",
    "//ios/chrome/common:string_util",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/elements",
    "//ios/chrome/common/ui/util",
    "//ios/chrome/common/ui/util:image_util",
    "//ios/public/provider/chrome/browser/password_auto_fill:password_auto_fill_api",
    "//ui/base",
  ]
}

source_set("constants") {
  sources = [
    "constants.h",
    "constants.mm",
  ]
  frameworks = [ "Foundation.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "passwords_in_other_apps_coordinator_unittest.mm",
    "passwords_in_other_apps_mediator_unittest.mm",
  ]
  deps = [
    ":passwords_in_other_apps",
    ":passwords_in_other_apps_ui",
    "//base/test:test_support",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/ui/settings/password:features",
    "//ios/chrome/browser/ui/settings/password/password_settings:common",
    "//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_ui",
    "//ios/chrome/browser/ui/settings/utils",
    "//ios/chrome/test:test_support",
    "//ios/chrome/test/app:test_support",
    "//ios/web/public/test",
    "//testing/gtest:gtest",
  ]
}

source_set("eg_app_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "passwords_in_other_apps_app_interface.h",
    "passwords_in_other_apps_app_interface.mm",
  ]
  deps = [
    "//base/test:test_support",
    "//ios/chrome/test/fakes",
    "//ios/testing/earl_grey:eg_app_support+eg2",
  ]
}

source_set("eg_test_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "passwords_in_other_apps_app_interface.h",
    "passwords_in_other_apps_app_interface_stub.mm",
  ]
  deps = [ "//ios/testing/earl_grey:eg_test_support+eg2" ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "passwords_in_other_apps_egtest.mm" ]
  deps = [
    ":constants",
    ":eg_test_support+eg2",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/ui/settings:settings_root_constants",
    "//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_constants",
    "//ios/chrome/browser/ui/settings/password/password_settings:password_settings_constants",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}