# Copyright 2019 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") {
sources = [
"passwords_coordinator.h",
"passwords_coordinator.mm",
"passwords_mediator+Testing.h",
"passwords_mediator.h",
"passwords_mediator.mm",
]
deps = [
":common",
":password_constants",
":password_ui",
"//components/feature_engagement/public",
"//components/keyed_service/core",
"//components/password_manager/core/browser",
"//components/sync/service",
"//ios/chrome/app/strings",
"//ios/chrome/browser/favicon/model",
"//ios/chrome/browser/feature_engagement/model",
"//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:save_passwords_consumer",
"//ios/chrome/browser/passwords/model/metrics",
"//ios/chrome/browser/shared/coordinator/alert",
"//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",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/ui/settings/password/password_checkup",
"//ios/chrome/browser/ui/settings/password/password_details",
"//ios/chrome/browser/ui/settings/password/password_issues",
"//ios/chrome/browser/ui/settings/password/password_settings",
"//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/browser/ui/settings/utils",
"//ios/chrome/common:string_util",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/favicon:favicon_constants",
"//ios/chrome/common/ui/reauthentication",
"//net",
"//ui/base",
"//url",
]
frameworks = [ "MobileCoreServices.framework" ]
}
source_set("common") {
sources = [
"account_storage_utils.cc",
"account_storage_utils.h",
"saved_passwords_presenter_observer.h",
"saved_passwords_presenter_observer.mm",
]
deps = [
"//base",
"//components/password_manager/core/browser",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/common",
]
}
source_set("password_ui") {
sources = [
"password_exporter.h",
"password_exporter.mm",
"password_manager_view_controller+Testing.h",
"password_manager_view_controller.h",
"password_manager_view_controller.mm",
"password_manager_view_controller_delegate.h",
"password_manager_view_controller_items.h",
"password_manager_view_controller_items.mm",
"password_manager_view_controller_presentation_delegate.h",
"passwords_consumer.h",
"passwords_settings_commands.h",
]
deps = [
":common",
":features",
":password_constants",
":title_view",
"//base",
"//components/device_reauth",
"//components/feature_engagement/public",
"//components/google/core/common",
"//components/keyed_service/core",
"//components/password_manager/core/browser",
"//components/password_manager/core/browser/export",
"//components/password_manager/core/common",
"//components/prefs",
"//components/strings",
"//components/sync/base",
"//components/sync/service",
"//ios/chrome/app/strings",
"//ios/chrome/browser/net/model:crurl",
"//ios/chrome/browser/passwords/model:password_checkup_metrics",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/ui/elements",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:constants",
"//ios/chrome/browser/shared/ui/table_view:styler",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/shared/ui/table_view:views",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/ui/settings:settings_root",
"//ios/chrome/browser/ui/settings:settings_root_categories",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/elements:enterprise_info_popover_view_controller",
"//ios/chrome/browser/ui/settings/password/resources",
"//ios/chrome/browser/ui/settings/utils",
"//ios/chrome/common",
"//ios/chrome/common:string_util",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/elements:popover_label_view_controller",
"//ios/chrome/common/ui/favicon",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/chrome/common/ui/util",
"//net",
"//ui/base",
"//url",
]
}
source_set("password_constants") {
sources = [
"passwords_table_view_constants.h",
"passwords_table_view_constants.mm",
]
deps = [
"//base",
"//ios/chrome/browser/shared/ui/list_model:list_model",
"//ios/chrome/browser/shared/ui/symbols",
]
}
source_set("title_view") {
sources = [
"create_password_manager_title_view.h",
"create_password_manager_title_view.mm",
]
deps = [
"//ios/chrome/app/strings:ios_strings_grit",
"//ios/chrome/browser/shared/ui/elements",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/common/ui/colors",
"//ios/public/provider/chrome/browser/font:font_api",
"//ui/base",
]
frameworks = [
"UIKit.framework",
"Foundation.framework",
]
}
source_set("features") {
sources = [
"password_manager_ui_features.h",
"password_manager_ui_features.mm",
]
public_deps = [ "//base" ]
}
source_set("test_support") {
testonly = true
sources = [ "password_exporter_for_testing.h" ]
deps = [ ":password_ui" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"password_exporter_unittest.mm",
"password_manager_view_controller_unittest.mm",
"passwords_mediator_unittest.mm",
]
deps = [
":password",
":password_constants",
":password_ui",
":test_support",
"//base",
"//base/test:test_support",
"//components/affiliations/core/browser:test_support",
"//components/feature_engagement/public",
"//components/feature_engagement/test:test_support",
"//components/keyed_service/core",
"//components/password_manager/core/browser",
"//components/password_manager/core/browser:password_form",
"//components/password_manager/core/browser:test_support",
"//components/password_manager/core/browser/leak_detection:test_support",
"//components/password_manager/core/common:features",
"//components/signin/public/identity_manager/objc",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/affiliations/model",
"//ios/chrome/browser/favicon/model",
"//ios/chrome/browser/feature_engagement/model",
"//ios/chrome/browser/passwords/model",
"//ios/chrome/browser/passwords/model:save_passwords_consumer",
"//ios/chrome/browser/passwords/model:store_factory",
"//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/shared/ui/table_view:test_support",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/sync/model:test_support",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/utils",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/chrome/test:test_support",
"//ios/chrome/test/app:test_support",
"//ios/web/public/test",
"//testing/gmock",
"//testing/gtest",
"//third_party/ocmock",
"//ui/base",
]
}
source_set("eg_test_support") {
testonly = true
sources = [
"password_manager_egtest_utils.h",
"password_manager_egtest_utils.mm",
]
deps = [
"//base",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ui/settings:settings_root_constants",
"//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_checkup:password_checkup_constants",
"//ios/chrome/browser/ui/settings/password/password_details:password_details_table_view_constants",
"//ios/chrome/browser/ui/settings/password/password_settings:password_settings_constants",
"//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ui/base",
]
}
source_set("eg_app_support+eg2") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"password_settings_app_interface.h",
"password_settings_app_interface.mm",
]
deps = [
":password",
"//base",
"//base/test:test_support",
"//components/autofill/core/common",
"//components/keyed_service/core",
"//components/password_manager/core/browser",
"//components/password_manager/core/browser:test_support",
"//components/password_manager/core/common",
"//components/password_manager/ios:fake_bulk_leak_check_service",
"//components/prefs",
"//components/strings",
"//components/webauthn/core/browser:passkey_model",
"//ios/chrome/browser/passwords/model",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/webauthn/model",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/test/app:test_support",
"//ios/public/provider/chrome/browser/passcode_settings:passcode_settings_api",
"//ios/testing/earl_grey:eg_app_support+eg2",
"//ios/third_party/material_components_ios",
"//url",
]
}
source_set("eg_test_support+eg2") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"password_settings_app_interface.h",
"password_settings_app_interface_stub.mm",
]
deps = [
"//components/password_manager/core/browser",
"//ios/chrome/common/ui/reauthentication",
"//ios/testing/earl_grey:eg_test_support+eg2",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "password_manager_egtest.mm" ]
deps = [
":eg_test_support",
":eg_test_support+eg2",
":password_constants",
"//base",
"//base/test:test_support",
"//components/feature_engagement/public",
"//components/password_manager/core/common",
"//components/policy:generated",
"//components/strings",
"//components/sync/base:features",
"//components/sync/service",
"//ios/chrome/app/strings",
"//ios/chrome/browser/metrics/model:eg_test_support+eg2",
"//ios/chrome/browser/passwords/model/metrics",
"//ios/chrome/browser/policy/model:eg_test_support+eg2",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings:settings_root_constants",
"//ios/chrome/browser/ui/settings/google_services:constants",
"//ios/chrome/browser/ui/settings/password/password_checkup:password_checkup_constants",
"//ios/chrome/browser/ui/settings/password/password_details:password_details_table_view_constants",
"//ios/chrome/browser/ui/settings/password/password_settings:password_settings_constants",
"//ios/chrome/browser/ui/settings/password/passwords_in_other_apps:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_constants",
"//ios/chrome/browser/ui/settings/password/widget_promo_instructions:widget_promo_instructions_constants",
"//ios/chrome/common/ui/confirmation_alert:constants",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/chrome/test/earl_grey:switches",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/web/public/test:element_selector",
"//ios/web/public/test/http_server:http_server",
"//ui/base",
"//url",
]
frameworks = [ "UIKit.framework" ]
}