# Copyright 2016 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("form_input_accessory") {
sources = [
"form_input_accessory_chromium_text_data.h",
"form_input_accessory_chromium_text_data.mm",
"form_input_accessory_consumer.h",
"form_input_accessory_coordinator.h",
"form_input_accessory_coordinator.mm",
"form_input_accessory_mediator.h",
"form_input_accessory_mediator.mm",
"form_input_accessory_mediator_handler.h",
"form_input_accessory_view_controller.h",
"form_input_accessory_view_controller.mm",
"form_input_accessory_view_controller_delegate.h",
"form_suggestion_label.h",
"form_suggestion_label.mm",
"form_suggestion_view.h",
"form_suggestion_view.mm",
]
deps = [
":common",
"//base",
"//components/autofill/core/browser",
"//components/autofill/ios/browser",
"//components/autofill/ios/form_util",
"//components/feature_engagement/public",
"//components/keyed_service/core",
"//components/password_manager/core/browser",
"//components/password_manager/core/common:features",
"//components/password_manager/ios",
"//components/prefs",
"//components/strings",
"//ios/chrome/app/application_delegate:app_state_header",
"//ios/chrome/app/strings",
"//ios/chrome/browser/autofill/model:model",
"//ios/chrome/browser/autofill/model:model_shared",
"//ios/chrome/browser/autofill/model/bottom_sheet",
"//ios/chrome/browser/autofill/ui_bundled:autofill_shared_ui",
"//ios/chrome/browser/autofill/ui_bundled/branding",
"//ios/chrome/browser/autofill/ui_bundled/branding:branding_ui",
"//ios/chrome/browser/autofill/ui_bundled/manual_fill",
"//ios/chrome/browser/autofill/ui_bundled/manual_fill:manual_fill_constants",
"//ios/chrome/browser/autofill/ui_bundled/manual_fill:manual_fill_ui",
"//ios/chrome/browser/bubble/ui_bundled",
"//ios/chrome/browser/default_browser/model:default_browser_interest_signals",
"//ios/chrome/browser/feature_engagement/model",
"//ios/chrome/browser/passwords/model",
"//ios/chrome/browser/shared/coordinator/alert",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/coordinator/layout_guide",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state",
"//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/web_state_list",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/shared/ui/util:util_swift",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/common/ui/colors:colors",
"//ios/chrome/common/ui/elements:form_input_accessory",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/common/ui/util",
"//ios/web/common",
"//ios/web/public",
"//ios/web/public/deprecated",
"//ios/web/public/js_messaging",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "form_input_accessory_mediator_unittest.mm" ]
deps = [
":form_input_accessory",
"//base/test:test_support",
"//components/autofill/ios/form_util",
"//components/autofill/ios/form_util:form_util_feature",
"//components/autofill/ios/form_util:test_support",
"//ios/chrome/browser/autofill/model:model_shared",
"//ios/chrome/browser/autofill/model/bottom_sheet",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/model/web_state_list/test:test_support",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
"//third_party/ocmock",
]
}
source_set("common") {
sources = [
"scoped_form_input_accessory_reauth_module_override.h",
"scoped_form_input_accessory_reauth_module_override.mm",
]
deps = [
"//base",
"//ios/chrome/common/ui/reauthentication",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "form_input_accessory_egtest.mm" ]
deps = [
":eg_test_support+eg2",
"//components/autofill/core/browser:test_support",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/common:features",
"//components/sync/service",
"//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/autofill/ui_bundled/manual_fill:manual_fill_constants",
"//ios/chrome/browser/metrics/model:eg_test_support+eg2",
"//ios/chrome/browser/passwords/model:eg_test_support+eg2",
"//ios/chrome/browser/passwords/ui_bundled/bottom_sheet:eg_test_support+eg2",
"//ios/chrome/browser/shared/public/features",
"//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",
"//net",
"//net:test_support",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}
source_set("eg_app_support+eg2") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"form_input_accessory_app_interface.h",
"form_input_accessory_app_interface.mm",
]
deps = [
":common",
"//base",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/test/app:test_support",
]
}
source_set("eg_test_support+eg2") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"form_input_accessory_app_interface.h",
"form_input_accessory_app_interface_stub.mm",
]
deps = [
"//ios/chrome/common/ui/reauthentication",
"//ios/testing/earl_grey:eg_test_support+eg2",
]
}