chromium/ios/chrome/browser/autofill/ui_bundled/manual_fill/BUILD.gn

# Copyright 2018 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("manual_fill") {
  sources = [
    "address_coordinator.h",
    "address_coordinator.mm",
    "card_coordinator.h",
    "card_coordinator.mm",
    "expanded_manual_fill_coordinator.h",
    "expanded_manual_fill_coordinator.mm",
    "fallback_coordinator.h",
    "fallback_coordinator.mm",
    "form_fetcher_consumer_bridge.h",
    "form_fetcher_consumer_bridge.mm",
    "form_input_interaction_delegate.h",
    "form_observer_helper.h",
    "form_observer_helper.mm",
    "manual_fill_address+AutofillProfile.h",
    "manual_fill_address+AutofillProfile.mm",
    "manual_fill_address_mediator.h",
    "manual_fill_address_mediator.mm",
    "manual_fill_all_password_coordinator.h",
    "manual_fill_all_password_coordinator.mm",
    "manual_fill_all_password_coordinator_delegate.h",
    "manual_fill_card_mediator.h",
    "manual_fill_card_mediator.mm",
    "manual_fill_credential+PasswordForm.h",
    "manual_fill_credential+PasswordForm.mm",
    "manual_fill_credit_card+CreditCard.h",
    "manual_fill_credit_card+CreditCard.mm",
    "manual_fill_injection_handler.h",
    "manual_fill_injection_handler.mm",
    "manual_fill_password_coordinator.h",
    "manual_fill_password_coordinator.mm",
    "manual_fill_password_mediator+Testing.h",
    "manual_fill_password_mediator.h",
    "manual_fill_password_mediator.mm",
    "manual_fill_plus_address_mediator.h",
    "manual_fill_plus_address_mediator.mm",
  ]
  deps = [
    ":manual_fill_constants",
    ":requesters",
    "//base",
    "//components/autofill/core/browser",
    "//components/autofill/core/common",
    "//components/autofill/core/common:credit_card_number_validation",
    "//components/autofill/ios/browser",
    "//components/autofill/ios/browser:util",
    "//components/autofill/ios/form_util",
    "//components/password_manager/core/browser",
    "//components/password_manager/core/common:features",
    "//components/password_manager/ios",
    "//components/password_manager/ios:account_select_fill_data",
    "//components/strings:components_strings_grit",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/affiliations/model",
    "//ios/chrome/browser/autofill/model",
    "//ios/chrome/browser/autofill/model:model_shared",
    "//ios/chrome/browser/autofill/ui_bundled/form_input_accessory:common",
    "//ios/chrome/browser/autofill/ui_bundled/manual_fill:manual_fill_ui",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/passwords/model",
    "//ios/chrome/browser/plus_addresses/model",
    "//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/model/web_state_list:web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/list_model:list_model",
    "//ios/chrome/browser/shared/ui/table_view:table_view",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/signin/model:system_identity",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/ui/menu",
    "//ios/chrome/browser/ui/settings/password:common",
    "//ios/chrome/browser/ui/settings/password:features",
    "//ios/chrome/browser/ui/settings/password/reauthentication",
    "//ios/chrome/browser/webauthn/model",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/reauthentication",
    "//ios/public/provider/chrome/browser/keyboard:keyboard_api",
    "//ios/web/public",
    "//ios/web/public/js_messaging",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("manual_fill_ui") {
  sources = [
    "address_consumer.h",
    "address_list_delegate.h",
    "address_view_controller.h",
    "address_view_controller.mm",
    "card_consumer.h",
    "card_list_delegate.h",
    "card_view_controller.h",
    "card_view_controller.mm",
    "chip_button.h",
    "chip_button.mm",
    "expanded_manual_fill_view_controller+Testing.h",
    "expanded_manual_fill_view_controller.h",
    "expanded_manual_fill_view_controller.mm",
    "fallback_view_controller.h",
    "fallback_view_controller.mm",
    "manual_fill_accessory_view_controller.h",
    "manual_fill_accessory_view_controller.mm",
    "manual_fill_accessory_view_controller_delegate.h",
    "manual_fill_action_cell.h",
    "manual_fill_action_cell.mm",
    "manual_fill_address.h",
    "manual_fill_address.mm",
    "manual_fill_address_cell.h",
    "manual_fill_address_cell.mm",
    "manual_fill_card_cell+Testing.h",
    "manual_fill_card_cell.h",
    "manual_fill_card_cell.mm",
    "manual_fill_cell_button.h",
    "manual_fill_cell_button.mm",
    "manual_fill_cell_utils.h",
    "manual_fill_cell_utils.mm",
    "manual_fill_content_injector.h",
    "manual_fill_credential.h",
    "manual_fill_credential.mm",
    "manual_fill_credit_card.h",
    "manual_fill_credit_card.mm",
    "manual_fill_labeled_chip.h",
    "manual_fill_labeled_chip.mm",
    "manual_fill_password_cell.h",
    "manual_fill_password_cell.mm",
    "manual_fill_plus_address.h",
    "manual_fill_plus_address.mm",
    "manual_fill_plus_address_cell.h",
    "manual_fill_plus_address_cell.mm",
    "manual_fill_plus_address_consumer.h",
    "manual_fill_site_info.h",
    "manual_fill_site_info.mm",
    "manual_fill_text_cell.h",
    "manual_fill_text_cell.mm",
    "password_consumer.h",
    "password_list_navigator.h",
    "password_view_controller.h",
    "password_view_controller.mm",
  ]
  deps = [
    ":manual_fill_constants",
    "//base",
    "//components/autofill/core/browser",
    "//components/autofill/ios/browser",
    "//components/google/core/common",
    "//components/password_manager/core/browser",
    "//components/password_manager/core/common",
    "//components/plus_addresses:features",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/chrome/browser/shared/ui/list_model:list_model",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/table_view:styler",
    "//ios/chrome/browser/shared/ui/table_view:table_view",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/ui/menu",
    "//ios/chrome/browser/ui/settings/password:title_view",
    "//ios/chrome/common:string_util",
    "//ios/chrome/common/ui/favicon",
    "//ios/chrome/common/ui/util",
    "//ios/third_party/material_components_ios",
    "//net:net",
    "//ui/base:base",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("manual_fill_constants") {
  sources = [
    "manual_fill_constants.h",
    "manual_fill_constants.mm",
  ]
  deps = [ "//components/autofill/core/browser" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "chip_button_unittest.mm",
    "expanded_manual_fill_view_controller_unittest.mm",
    "fallback_view_controller_unittest.mm",
    "form_observer_helper_unittest.mm",
    "manual_fill_address+AutofillProfile_unittest.mm",
    "manual_fill_address_unittest.mm",
    "manual_fill_all_password_coordinator_unittest.mm",
    "manual_fill_card_mediator_unittest.mm",
    "manual_fill_cell_utils_unittest.mm",
    "manual_fill_credential+PasswordForm_unittest.mm",
    "manual_fill_credential_unittest.mm",
    "manual_fill_credit_card+CreditCard_unittest.mm",
    "manual_fill_credit_card_unittest.mm",
    "manual_fill_labeled_chip_unittest.mm",
    "manual_fill_password_mediator_unittest.mm",
  ]
  deps = [
    ":manual_fill",
    ":manual_fill_constants",
    ":manual_fill_ui",
    ":requesters",
    "//base",
    "//base/test:test_support",
    "//components/affiliations/core/browser:test_support",
    "//components/autofill/core/browser",
    "//components/autofill/core/browser:test_support",
    "//components/autofill/core/common",
    "//components/autofill/core/common:credit_card_number_validation",
    "//components/autofill/ios/browser",
    "//components/autofill/ios/form_util:form_util",
    "//components/autofill/ios/form_util:test_support",
    "//components/leveldb_proto:leveldb_proto",
    "//components/password_manager/core/browser",
    "//components/password_manager/core/browser:test_support",
    "//components/prefs",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/affiliations/model",
    "//ios/chrome/browser/autofill/ui_bundled:bridges",
    "//ios/chrome/browser/autofill/ui_bundled:coordinator",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/infobars/model",
    "//ios/chrome/browser/passwords/model:store_factory",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/application_context",
    "//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/model/web_state_list:web_state_list",
    "//ios/chrome/browser/shared/model/web_state_list/test:test_support",
    "//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:test_support",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/sync/model:test_support",
    "//ios/chrome/browser/ui/settings/password:common",
    "//ios/chrome/browser/ui/settings/password/password_settings:common",
    "//ios/chrome/browser/ui/settings/password/reauthentication:reauthentication_ui",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/util",
    "//ios/chrome/test:test_support",
    "//ios/chrome/test/app:test_support",
    "//ios/web/public/js_messaging",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gtest:gtest",
    "//third_party/ocmock:ocmock",
    "//url:url",
  ]
}

source_set("requesters") {
  sources = [
    "full_card_request_result_delegate_bridge.h",
    "manual_fill_full_card_requester.h",
    "manual_fill_full_card_requester.mm",
  ]
  deps = [
    ":manual_fill_constants",
    "//base",
    "//components/autofill/core/browser",
    "//components/autofill/core/common",
    "//components/autofill/ios/browser",
    "//ios/chrome/browser/autofill/model",
    "//ios/chrome/browser/autofill/ui_bundled:bridges",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/web_state_list:web_state_list",
    "//ios/web/public:public",
    "//ios/web/public/js_messaging",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("eg_test_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true

  sources = [
    "manual_fill_matchers.h",
    "manual_fill_matchers.mm",
  ]

  deps = [
    ":manual_fill_constants",
    "//ios/chrome/app/strings:ios_strings_grit",
    "//ios/chrome/browser/autofill/model:constants",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ui/base",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "address_view_controller_egtest.mm",
    "card_view_controller_egtest.mm",
    "expanded_manual_fill_egtest.mm",
    "fallback_coordinator_egtest.mm",
    "fallback_view_controller_egtest.mm",
    "password_view_controller_egtest.mm",
    "plus_address_manual_fill_egtest.mm",
  ]
  deps = [
    ":manual_fill_constants",
    "//base",
    "//base/test:test_support",
    "//components/autofill/core/browser:test_support",
    "//components/password_manager/core/browser",
    "//components/password_manager/core/common:features",
    "//components/plus_addresses:features",
    "//components/plus_addresses:test_support",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/autofill/ui_bundled:eg_test_support+eg2",
    "//ios/chrome/browser/autofill/ui_bundled/form_input_accessory:eg_test_support+eg2",
    "//ios/chrome/browser/autofill/ui_bundled/manual_fill:eg_test_support+eg2",
    "//ios/chrome/browser/metrics/model:eg_test_support+eg2",
    "//ios/chrome/browser/passwords/ui_bundled/bottom_sheet:eg_test_support+eg2",
    "//ios/chrome/browser/plus_addresses/ui:eg_test_support+eg2",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/util: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/autofill:constants",
    "//ios/chrome/browser/ui/settings/google_services: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:features",
    "//ios/chrome/browser/ui/settings/password:password_constants",
    "//ios/chrome/browser/ui/settings/password/password_details:password_details_table_view_constants",
    "//ios/chrome/common/ui/elements:form_input_accessory",
    "//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/web/public/test:element_selector",
    "//net:test_support",
    "//ui/base",
    "//url",
  ]
  frameworks = [ "UIKit.framework" ]
}