| # 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("autofill") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "address_normalizer_factory.h", |
| "address_normalizer_factory.mm", |
| "autocomplete_history_manager_factory.h", |
| "autocomplete_history_manager_factory.mm", |
| "autofill_log_router_factory.cc", |
| "autofill_log_router_factory.h", |
| "form_input_suggestions_provider.h", |
| "form_suggestion_controller.h", |
| "form_suggestion_controller.mm", |
| "form_suggestion_tab_helper.h", |
| "form_suggestion_tab_helper.mm", |
| "personal_data_manager_factory.h", |
| "personal_data_manager_factory.mm", |
| "strike_database_factory.h", |
| "strike_database_factory.mm", |
| "validation_rules_storage_factory.cc", |
| "validation_rules_storage_factory.h", |
| ] |
| deps = [ |
| ":autofill_shared", |
| "resources:autofill_close", |
| "resources:autofill_close_pressed", |
| "resources:autofill_keyboard_background", |
| "resources:autofill_keyboard_background_left", |
| "resources:autofill_keyboard_background_right", |
| "resources:autofill_left_sep", |
| "resources:autofill_left_sep_RTL", |
| "resources:autofill_middle_sep", |
| "resources:autofill_next", |
| "resources:autofill_next_inactive", |
| "resources:autofill_next_pressed", |
| "resources:autofill_prev", |
| "resources:autofill_prev_inactive", |
| "resources:autofill_prev_pressed", |
| "resources:autofill_right_sep", |
| "resources:autofill_right_sep_RTL", |
| "//base", |
| "//base:i18n", |
| "//components/autofill/core/browser", |
| "//components/autofill/ios/browser", |
| "//components/autofill/ios/form_util", |
| "//components/keyed_service/core", |
| "//components/keyed_service/ios", |
| "//components/leveldb_proto", |
| "//components/prefs", |
| "//components/sync/driver", |
| "//components/variations/service", |
| "//ios/chrome/browser/application_context", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/history", |
| "//ios/chrome/browser/passwords:passwords_generation_utils", |
| "//ios/chrome/browser/paths", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/ui/image_util", |
| "//ios/chrome/browser/ui/util:util_swift", |
| "//ios/chrome/browser/webdata_services", |
| "//ios/web/common", |
| "//ios/web/public/js_messaging", |
| "//third_party/leveldatabase", |
| "//third_party/libaddressinput", |
| "//ui/base", |
| "//url", |
| ] |
| public_deps = [ ":constants" ] |
| frameworks = [ "QuartzCore.framework" ] |
| } |
| |
| source_set("autofill_shared") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "form_input_accessory_view_handler.h", |
| "form_input_accessory_view_handler.mm", |
| "form_input_navigator.h", |
| "form_input_suggestions_provider.h", |
| "form_suggestion_client.h", |
| ] |
| deps = [ |
| "//base", |
| "//components/autofill/core/browser", |
| "//components/autofill/ios/browser", |
| "//ios/chrome/browser/ui/util", |
| "//ios/web/public", |
| "//ios/web/public/js_messaging", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("autofill_internal") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "autofill_tab_helper.h", |
| "autofill_tab_helper.mm", |
| ] |
| deps = [ |
| ":autofill", |
| "//base", |
| "//components/autofill/core/browser", |
| "//components/autofill/core/common", |
| "//components/autofill/ios/browser", |
| "//components/infobars/core", |
| "//components/pref_registry", |
| "//components/prefs", |
| "//ios/chrome/browser/application_context", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/ui/autofill", |
| "//third_party/leveldatabase", |
| "//ui/gfx/geometry", |
| "//url", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("constants") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "form_suggestion_constants.h", |
| "form_suggestion_constants.mm", |
| ] |
| } |
| |
| # This file defines the autofill_test_files list, which contains all input |
| # and output files for form_structure_browsertest.mm. |
| import("//components/test/data/autofill/heuristics/test_files.gni") |
| |
| # Generate a file containing the list of test input files. This list will |
| # be used to initialise the test as enumerating the file in the bundle is |
| # problematic when doing an incremental build (as deleting test files from |
| # autofill_test_files does not remove them from the generated test app |
| # bundle). |
| write_file( |
| "${root_gen_dir}/autofill_browsertest/autofill_test_files", |
| rebase_path(filter_include( |
| autofill_test_files, |
| [ "//components/test/data/autofill/heuristics/input/*" ]), |
| "//components/test/data/autofill/heuristics/input", |
| ".")) |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| |
| sources = [ |
| "autofill_controller_js_unittest.mm", |
| "autofill_controller_unittest.mm", |
| "autofill_java_script_feature_unittest.mm", |
| "form_input_accessory_view_handler_unittest.mm", |
| "form_structure_browsertest.mm", |
| "form_suggestion_controller_unittest.mm", |
| "suggestion_controller_java_script_feature_unittest.mm", |
| ] |
| deps = [ |
| ":autofill", |
| ":autofill_internal", |
| ":autofill_shared", |
| ":unit_tests_bundle_data", |
| ":unit_tests_bundle_data_list", |
| "//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/browser:test_support", |
| "//components/autofill/ios/form_util", |
| "//components/autofill/ios/form_util:form_util_feature", |
| "//components/autofill/ios/form_util:test_support", |
| "//components/feature_engagement/public", |
| "//components/feature_engagement/test:test_support", |
| "//components/infobars/core", |
| "//components/keyed_service/core", |
| "//components/password_manager/core/browser:test_support", |
| "//components/password_manager/ios", |
| "//components/security_state/ios", |
| "//components/sync_user_events:test_support", |
| "//ios/chrome/app/application_delegate:app_state_header", |
| "//ios/chrome/browser/browser_state:test_support", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/passwords", |
| "//ios/chrome/browser/paths", |
| "//ios/chrome/browser/ssl", |
| "//ios/chrome/browser/sync:sync", |
| "//ios/chrome/browser/ui/autofill", |
| "//ios/chrome/browser/ui/autofill/form_input_accessory", |
| "//ios/chrome/browser/ui/bubble:features", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| "//ios/chrome/browser/ui/settings:test_support", |
| "//ios/chrome/browser/web:web_internal", |
| "//ios/chrome/browser/webdata_services", |
| "//ios/chrome/test:test_support", |
| "//ios/testing:block_swizzler", |
| "//ios/web/public/js_messaging", |
| "//ios/web/public/test", |
| "//testing/data_driven_testing", |
| "//testing/gtest", |
| "//third_party/leveldatabase", |
| "//third_party/ocmock", |
| "//ui/base:test_support", |
| ] |
| } |
| |
| bundle_data("unit_tests_bundle_data") { |
| sources = autofill_test_files |
| outputs = [ "{{bundle_resources_dir}}/" + |
| "{{source_root_relative_dir}}/{{source_file_part}}" ] |
| } |
| |
| bundle_data("unit_tests_bundle_data_list") { |
| sources = [ "${root_gen_dir}/autofill_browsertest/autofill_test_files" ] |
| outputs = |
| [ "{{bundle_resources_dir}}/" + |
| "components/test/data/autofill/heuristics/input/{{source_file_part}}" ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ "form_input_egtest.mm" ] |
| deps = [ |
| "//base", |
| "//base/test:test_support", |
| "//ios/chrome/app/strings", |
| "//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/third_party/earl_grey2:test_lib", |
| "//ios/web/public", |
| "//ios/web/public/test:element_selector", |
| "//net:test_support", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |