# 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("password_settings") {
sources = [
"password_bulk_move_handler.h",
"password_export_handler.h",
"password_settings_coordinator.h",
"password_settings_coordinator.mm",
"password_settings_coordinator_delegate.h",
"password_settings_mediator.h",
"password_settings_mediator.mm",
]
deps = [
":common",
":password_settings_constants",
":password_settings_ui",
"//components/google/core/common",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/common",
"//components/prefs",
"//components/signin/public/identity_manager/objc",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/affiliations/model",
"//ios/chrome/browser/passwords/model",
"//ios/chrome/browser/passwords/model/metrics",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/model/utils",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/ui/util:util",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/sync/model:model",
"//ios/chrome/browser/ui/settings/elements:enterprise_info_popover_view_controller",
"//ios/chrome/browser/ui/settings/password:common",
"//ios/chrome/browser/ui/settings/password:password_ui",
"//ios/chrome/browser/ui/settings/password/passwords_in_other_apps",
"//ios/chrome/browser/ui/settings/password/reauthentication",
"//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_delegate",
"//ios/chrome/browser/ui/settings/utils",
"//ios/chrome/browser/webauthn/model",
"//ios/chrome/common/ui/reauthentication",
"//ui/base",
"//url",
]
}
source_set("password_settings_ui") {
sources = [
"password_settings_consumer.h",
"password_settings_delegate.h",
"password_settings_view_controller.h",
"password_settings_view_controller.mm",
]
deps = [
":password_settings_constants",
"//components/strings",
"//components/sync/base",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/common/ui/util:image_util",
"//ui/base",
]
public_deps = [ "//ios/chrome/browser/ui/settings:settings_root" ]
frameworks = [ "UIKit.framework" ]
}
source_set("password_settings_constants") {
sources = [
"password_settings_constants.h",
"password_settings_constants.mm",
]
deps = [ "//ios/chrome/browser/shared/ui/list_model" ]
}
source_set("common") {
sources = [
"scoped_password_settings_reauth_module_override.h",
"scoped_password_settings_reauth_module_override.mm",
]
deps = [
"//base",
"//ios/chrome/common/ui/reauthentication",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"password_settings_coordinator_unittest.mm",
"password_settings_mediator_unittest.mm",
]
deps = [
":common",
":password_settings",
":password_settings_ui",
"//base/test:test_support",
"//components/affiliations/core/browser:test_support",
"//components/password_manager/core/browser:test_support",
"//components/password_manager/core/common:features",
"//components/signin/public/identity_manager/objc",
"//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/signin/model",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/ui/settings/password:features",
"//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_ui",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/test:test_support",
"//ios/chrome/test/app:test_support",
"//ios/testing:protocol_fake",
"//ios/web/public/test",
"//testing/gmock",
"//testing/gtest",
"//third_party/ocmock",
]
}