blob: d9cbc97b133c2e74ec46f2e10393864edb5908e2 [file] [log] [blame]
# 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("autofill") {
sources = [
"autofill_add_credit_card_coordinator.h",
"autofill_add_credit_card_coordinator.mm",
"autofill_add_credit_card_coordinator_delegate.h",
"autofill_add_credit_card_mediator.h",
"autofill_add_credit_card_mediator.mm",
"autofill_add_credit_card_mediator_delegate.h",
"autofill_add_credit_card_view_controller.h",
"autofill_add_credit_card_view_controller.mm",
"autofill_add_credit_card_view_controller_delegate.h",
"autofill_add_credit_card_view_controller_presentation_delegate.h",
"autofill_credit_card_edit_table_view_controller.h",
"autofill_credit_card_edit_table_view_controller.mm",
"autofill_credit_card_table_view_controller.h",
"autofill_credit_card_table_view_controller.mm",
"autofill_cvc_storage_consumer.h",
"autofill_cvc_storage_view_controller.h",
"autofill_cvc_storage_view_controller.mm",
"autofill_cvc_storage_view_coordinator.h",
"autofill_cvc_storage_view_coordinator.mm",
"autofill_cvc_storage_view_coordinator_delegate.h",
"autofill_cvc_storage_view_mediator.h",
"autofill_cvc_storage_view_mediator.mm",
"autofill_edit_table_view_controller.h",
"autofill_edit_table_view_controller.mm",
"autofill_profile_edit_coordinator.h",
"autofill_profile_edit_coordinator.mm",
"autofill_profile_table_view_controller.h",
"autofill_profile_table_view_controller.mm",
"autofill_settings_profile_edit_table_view_controller.h",
"autofill_settings_profile_edit_table_view_controller.mm",
]
deps = [
":constants",
":shared_ui",
"//components/application_locale_storage",
"//components/autofill/core/browser",
"//components/autofill/core/common",
"//components/autofill/core/common:credit_card_number_validation",
"//components/autofill/ios/browser",
"//components/autofill/ios/common",
"//components/password_manager/core/common:features",
"//components/plus_addresses/core/browser/resources/strings",
"//components/prefs",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/autofill/model",
"//ios/chrome/browser/autofill/ui_bundled:common",
"//ios/chrome/browser/autofill/ui_bundled:ui_type",
"//ios/chrome/browser/autofill/ui_bundled:util",
"//ios/chrome/browser/autofill/ui_bundled/address_editor:autofill_shared_ui",
"//ios/chrome/browser/autofill/ui_bundled/address_editor:constants",
"//ios/chrome/browser/autofill/ui_bundled/address_editor/cells",
"//ios/chrome/browser/autofill/ui_bundled/bottom_sheet",
"//ios/chrome/browser/autofill/ui_bundled/cells",
"//ios/chrome/browser/autofill/ui_bundled/form_input_accessory",
"//ios/chrome/browser/net/model:crurl",
"//ios/chrome/browser/settings/ui_bundled:settings_root",
"//ios/chrome/browser/settings/ui_bundled:settings_root_categories",
"//ios/chrome/browser/settings/ui_bundled:settings_root_constants",
"//ios/chrome/browser/settings/ui_bundled/autofill/cells",
"//ios/chrome/browser/settings/ui_bundled/cells",
"//ios/chrome/browser/settings/ui_bundled/credit_card_scanner",
"//ios/chrome/browser/settings/ui_bundled/elements:enterprise_info_popover_view_controller",
"//ios/chrome/browser/shared/coordinator/alert",
"//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/prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//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/public/features",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/signin/model:authentication_service",
"//ios/chrome/browser/signin/model:authentication_service_factory",
"//ios/chrome/browser/sync/model",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/elements:form_input_accessory",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/chrome/common/ui/util",
"//ui/strings",
]
}
source_set("constants") {
sources = [
"autofill_settings_constants.h",
"autofill_settings_constants.mm",
]
}
source_set("shared_ui") {
sources =
[ "autofill_settings_profile_edit_table_view_controller_delegate.h" ]
deps = [ "//components/autofill/core/browser" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"autofill_add_credit_card_mediator_unittest.mm",
"autofill_credit_card_table_view_controller_unittest.mm",
"autofill_credit_card_util_unittest.mm",
"autofill_profile_table_view_controller_unittest.mm",
"autofill_settings_profile_edit_table_view_controller_unittest.mm",
]
deps = [
":autofill",
"//base/test:test_support",
"//components/application_locale_storage",
"//components/autofill/core/browser",
"//components/autofill/core/browser:test_support",
"//components/plus_addresses/core/browser/resources/strings",
"//components/plus_addresses/core/common:features",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/autofill/model",
"//ios/chrome/browser/autofill/model/message",
"//ios/chrome/browser/autofill/ui_bundled:ui_type",
"//ios/chrome/browser/autofill/ui_bundled:util",
"//ios/chrome/browser/autofill/ui_bundled/address_editor:autofill_shared_ui",
"//ios/chrome/browser/autofill/ui_bundled/address_editor:constants",
"//ios/chrome/browser/net/model:crurl",
"//ios/chrome/browser/settings/ui_bundled:settings_root",
"//ios/chrome/browser/settings/ui_bundled:test_support",
"//ios/chrome/browser/settings/ui_bundled/autofill/cells",
"//ios/chrome/browser/settings/ui_bundled/cells",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:test_support",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:authentication_service",
"//ios/chrome/browser/signin/model:authentication_service_factory",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/signin/model:fake_system_identity_manager",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/browser/webdata_services/model",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//testing/gtest",
"//third_party/ocmock",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"autofill_add_address_manually_egtest.mm",
"autofill_add_credit_card_egtest.mm",
"autofill_credit_card_settings_egtest.mm",
"autofill_cvc_storage_settings_egtest.mm",
"autofill_edit_credit_card_egtest.mm",
"autofill_profile_settings_egtest.mm",
]
deps = [
":constants",
"//base",
"//components/autofill/core/browser:test_support",
"//components/autofill/ios/common",
"//components/policy:policy_code_generate",
"//components/strings",
"//components/sync/base:features",
"//ios/chrome/app/strings",
"//ios/chrome/browser/authentication/test:eg_test_support+eg2",
"//ios/chrome/browser/autofill/ui_bundled:eg_test_support+eg2",
"//ios/chrome/browser/autofill/ui_bundled/address_editor:constants",
"//ios/chrome/browser/autofill/ui_bundled/bottom_sheet:constants",
"//ios/chrome/browser/metrics/model:eg_test_support+eg2",
"//ios/chrome/browser/policy/model:eg_test_support+eg2",
"//ios/chrome/browser/settings/ui_bundled:settings_root_constants",
"//ios/chrome/browser/shared/public/snackbar:constants",
"//ios/chrome/browser/shared/ui/elements:eg_test_support+eg2",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/test:eg_test_support+eg2",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:launch_configuration",
"//ios/third_party/earl_grey2:app_framework_shared_headers",
"//ios/web/public/test:element_selector",
"//net:test_support",
"//testing/gtest",
"//ui/base",
"//ui/strings:ui_strings_grit",
]
frameworks = [ "UIKit.framework" ]
# TODO(crbug.com/40031409): Fix code that adds exit-time destructors and
# enable the diagnostic by removing this line.
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
}