chromium/ios/chrome/browser/ui/settings/autofill/BUILD.gn

# 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_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_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/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/prefs",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/autofill/model",
    "//ios/chrome/browser/autofill/ui_bundled:autofill_shared_ui",
    "//ios/chrome/browser/autofill/ui_bundled:common",
    "//ios/chrome/browser/autofill/ui_bundled:ui_type",
    "//ios/chrome/browser/autofill/ui_bundled/cells",
    "//ios/chrome/browser/autofill/ui_bundled/form_input_accessory:form_input_accessory",
    "//ios/chrome/browser/net/model:crurl",
    "//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/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//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",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings:settings_root_categories",
    "//ios/chrome/browser/ui/settings:settings_root_constants",
    "//ios/chrome/browser/ui/settings/autofill/cells",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/elements:enterprise_info_popover_view_controller",
    "//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" ]
}

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/autofill/core/browser",
    "//components/autofill/core/browser:test_support",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/autofill/model",
    "//ios/chrome/browser/autofill/ui_bundled:autofill_shared_ui",
    "//ios/chrome/browser/autofill/ui_bundled:ui_type",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/browser_state",
    "//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:test_support",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings:test_support",
    "//ios/chrome/browser/ui/settings/autofill/cells",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/webdata_services/model",
    "//ios/chrome/common/ui/reauthentication: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_credit_card_egtest.mm",
    "autofill_credit_card_settings_egtest.mm",
    "autofill_edit_credit_card_egtest.mm",
    "autofill_profile_settings_egtest.mm",
  ]
  deps = [
    ":constants",
    "//base",
    "//components/autofill/core/browser:test_support",
    "//components/strings",
    "//components/sync/base:features",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/autofill/ui_bundled:constants",
    "//ios/chrome/browser/autofill/ui_bundled:eg_test_support+eg2",
    "//ios/chrome/browser/metrics/model:eg_test_support+eg2",
    "//ios/chrome/browser/shared/ui/elements:eg_test_support+eg2",
    "//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/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:launch_configuration",
    "//ios/web/public/test:element_selector",
    "//net:test_support",
    "//ui/base",
    "//ui/strings:ui_strings_grit",
  ]
  frameworks = [ "UIKit.framework" ]
}