blob: a7c1f47301ace4db36a69f5b271538bdd6dc942e [file] [log] [blame]
# 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",
"fallback_coordinator.h",
"fallback_coordinator.mm",
"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_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.h",
"manual_fill_password_mediator.mm",
]
deps = [
":requesters",
"//base",
"//components/autofill/core/browser",
"//components/autofill/core/common",
"//components/autofill/ios/browser",
"//components/autofill/ios/browser:util",
"//components/autofill/ios/form_util",
"//components/keyed_service/core:core",
"//components/password_manager/core/browser",
"//components/password_manager/core/common:features",
"//ios/chrome/app/strings",
"//ios/chrome/browser/autofill",
"//ios/chrome/browser/autofill:autofill_shared",
"//ios/chrome/browser/autofill/manual_fill",
"//ios/chrome/browser/favicon",
"//ios/chrome/browser/main",
"//ios/chrome/browser/net:crurl",
"//ios/chrome/browser/passwords",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state",
"//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/sync",
"//ios/chrome/browser/ui/autofill/manual_fill:manual_fill_ui",
"//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" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
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",
"fallback_view_controller.h",
"fallback_view_controller.mm",
"manual_fill_accessory_view_controller.h",
"manual_fill_accessory_view_controller.mm",
"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.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_password_cell.h",
"manual_fill_password_cell.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 = [
"//base",
"//components/google/core/common",
"//components/password_manager/core/browser",
"//components/password_manager/core/common",
"//ios/chrome/app/strings",
"//ios/chrome/browser/favicon",
"//ios/chrome/browser/net:crurl",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/public/features",
"//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/ui/settings/password:title_view",
"//ios/chrome/common:button_config",
"//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" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"fallback_view_controller_unittest.mm",
"form_observer_helper_unittest.mm",
"full_card_requester_unittest.mm",
"manual_fill_address+AutofillProfile_unittest.mm",
"manual_fill_address_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",
]
deps = [
":manual_fill",
":manual_fill_ui",
":requesters",
"//base",
"//base/test:test_support",
"//components/autofill/core/browser",
"//components/autofill/core/browser:test_support",
"//components/autofill/core/common",
"//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/prefs",
"//ios/chrome/browser/infobars",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state:test_support",
"//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/ui/table_view:test_support",
"//ios/chrome/browser/ui/autofill",
"//ios/chrome/browser/ui/autofill:bridges",
"//ios/chrome/test: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",
"full_card_request_result_delegate_bridge.mm",
"full_card_requester.h",
"full_card_requester.mm",
"manual_fill_full_card_requester.h",
"manual_fill_full_card_requester.mm",
]
deps = [
"//base",
"//components/autofill/core/browser",
"//components/autofill/core/common",
"//components/autofill/ios/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/web_state_list:web_state_list",
"//ios/chrome/browser/ui/autofill:bridges",
"//ios/web/public:public",
"//ios/web/public/js_messaging",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("eg2_tests") {
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"address_view_controller_egtest.mm",
"card_view_controller_egtest.mm",
"fallback_coordinator_egtest.mm",
"fallback_view_controller_egtest.mm",
"password_view_controller_egtest.mm",
]
deps = [
"//base",
"//base/test:test_support",
"//components/autofill/core/browser:test_support",
"//components/password_manager/core/browser",
"//components/password_manager/core/common:features",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/ui/util:eg_test_support+eg2",
"//ios/chrome/browser/signin:fake_system_identity",
"//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
"//ios/chrome/browser/ui/autofill:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings/password:password_constants",
"//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/web/public/test:element_selector",
"//net:test_support",
"//ui/base",
"//url",
]
frameworks = [ "UIKit.framework" ]
}