# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//build/config/chrome_build.gni") # This config sets the define that controls which Wallet service to contact # for features using Wallet integration. Unofficial builds won't have the # proper API keys so it uses the "sandbox" test servers instead. config("wallet_service") { if (is_official_build) { defines = [ "ENABLE_PROD_WALLET_SERVICE=1" ] } } # GYP version: components/autofill.gyp:autofill_core_browser source_set("browser") { sources = [ "address.cc", "address.h", "address_field.cc", "address_field.h", "address_i18n.cc", "address_i18n.h", "autocomplete_history_manager.cc", "autocomplete_history_manager.h", "autofill-inl.h", "autofill_cc_infobar_delegate.cc", "autofill_cc_infobar_delegate.h", "autofill_client.h", "autofill_country.cc", "autofill_country.h", "autofill_data_model.cc", "autofill_data_model.h", "autofill_download_manager.cc", "autofill_download_manager.h", "autofill_driver.h", "autofill_experiments.cc", "autofill_experiments.h", "autofill_external_delegate.cc", "autofill_external_delegate.h", "autofill_field.cc", "autofill_field.h", "autofill_ie_toolbar_import_win.cc", "autofill_ie_toolbar_import_win.h", "autofill_manager.cc", "autofill_manager.h", "autofill_manager_test_delegate.h", "autofill_metrics.cc", "autofill_metrics.h", "autofill_popup_delegate.h", "autofill_profile.cc", "autofill_profile.h", "autofill_regex_constants.cc", "autofill_regex_constants.h", "autofill_scanner.cc", "autofill_scanner.h", "autofill_sync_constants.cc", "autofill_sync_constants.h", "autofill_type.cc", "autofill_type.h", "autofill_wallet_data_type_controller.cc", "autofill_wallet_data_type_controller.h", "card_unmask_delegate.cc", "card_unmask_delegate.h", "contact_info.cc", "contact_info.h", "country_data.cc", "country_data.h", "country_names.cc", "country_names.h", "credit_card.cc", "credit_card.h", "credit_card_field.cc", "credit_card_field.h", "detail_input.cc", "detail_input.h", "dialog_section.h", "email_field.cc", "email_field.h", "field_candidates.cc", "field_candidates.h", "field_types.h", "form_field.cc", "form_field.h", "form_group.cc", "form_group.h", "form_structure.cc", "form_structure.h", "legal_message_line.cc", "legal_message_line.h", "name_field.cc", "name_field.h", "options_util.cc", "options_util.h", "password_generator.cc", "password_generator.h", "payments/payments_client.cc", "payments/payments_client.h", "payments/payments_request.h", "personal_data_manager.cc", "personal_data_manager.h", "personal_data_manager_observer.h", "phone_field.cc", "phone_field.h", "phone_number.cc", "phone_number.h", "phone_number_i18n.cc", "phone_number_i18n.h", "popup_item_ids.h", "server_field_types_util.cc", "server_field_types_util.h", "state_names.cc", "state_names.h", "suggestion.cc", "suggestion.h", "ui/card_unmask_prompt_controller.h", "ui/card_unmask_prompt_controller_impl.cc", "ui/card_unmask_prompt_controller_impl.h", "ui/card_unmask_prompt_view.h", "validation.cc", "validation.h", "webdata/autocomplete_syncable_service.cc", "webdata/autocomplete_syncable_service.h", "webdata/autofill_change.cc", "webdata/autofill_change.h", "webdata/autofill_data_type_controller.cc", "webdata/autofill_data_type_controller.h", "webdata/autofill_entry.cc", "webdata/autofill_entry.h", "webdata/autofill_profile_data_type_controller.cc", "webdata/autofill_profile_data_type_controller.h", "webdata/autofill_profile_syncable_service.cc", "webdata/autofill_profile_syncable_service.h", "webdata/autofill_table.cc", "webdata/autofill_table.h", "webdata/autofill_wallet_metadata_syncable_service.cc", "webdata/autofill_wallet_metadata_syncable_service.h", "webdata/autofill_wallet_syncable_service.cc", "webdata/autofill_wallet_syncable_service.h", "webdata/autofill_webdata.h", "webdata/autofill_webdata_backend.h", "webdata/autofill_webdata_backend_impl.cc", "webdata/autofill_webdata_backend_impl.h", "webdata/autofill_webdata_service.cc", "webdata/autofill_webdata_service.h", "webdata/autofill_webdata_service_observer.h", ] if (is_ios) { sources += [ "autofill_field_trial_ios.cc", "autofill_field_trial_ios.h", "keyboard_accessory_metrics_logger.h", "keyboard_accessory_metrics_logger.mm", ] } if (is_ios || is_android) { sources += [ "autofill_save_card_infobar_delegate_mobile.cc", "autofill_save_card_infobar_delegate_mobile.h", "autofill_save_card_infobar_mobile.h", ] } configs += [ "//build/config:precompiled_headers" ] deps = [ "//base", "//base:i18n", "//components/autofill/core/browser/proto", "//components/autofill/core/common", "//components/data_use_measurement/core", "//components/infobars/core", "//components/keyed_service/core", "//components/os_crypt", "//components/pref_registry", "//components/prefs", "//components/rappor", "//components/resources", "//components/signin/core/browser", "//components/signin/core/common", "//components/strings", "//components/sync_driver", "//components/variations/net", "//components/webdata/common", "//google_apis", "//net", "//skia", "//sql", "//sync", "//third_party/fips181", "//third_party/icu", "//third_party/libaddressinput:util", "//third_party/libphonenumber", "//third_party/re2", "//ui/base", "//ui/gfx", "//ui/gfx/geometry", "//url", ] configs += [ ":wallet_service", "//build/config/compiler:no_size_t_to_int_warning", ] if (is_mac) { libs = [ "AddressBook.framework" ] } } source_set("test_support") { testonly = true sources = [ "autofill_test_utils.cc", "autofill_test_utils.h", "data_driven_test.cc", "data_driven_test.h", "suggestion_test_helpers.h", "test_autofill_client.cc", "test_autofill_client.h", "test_autofill_driver.cc", "test_autofill_driver.h", "test_autofill_external_delegate.cc", "test_autofill_external_delegate.h", "test_personal_data_manager.cc", "test_personal_data_manager.h", ] public_deps = [ ":browser", ] deps = [ "//base", "//base/test:test_support", "//components/autofill/core/browser", "//components/autofill/core/browser/proto", "//components/autofill/core/common", "//components/os_crypt", "//components/pref_registry", "//components/prefs:test_support", "//components/rappor", "//components/rappor:test_support", "//components/signin/core/browser", "//components/signin/core/common", "//google_apis:test_support", "//skia", "//testing/gtest", "//ui/gfx:test_support", "//ui/gfx/geometry", ] } source_set("unit_tests") { testonly = true sources = [ "address_field_unittest.cc", "address_i18n_unittest.cc", "address_unittest.cc", "autocomplete_history_manager_unittest.cc", "autofill_country_unittest.cc", "autofill_data_model_unittest.cc", "autofill_download_manager_unittest.cc", "autofill_external_delegate_unittest.cc", "autofill_field_unittest.cc", "autofill_ie_toolbar_import_win_unittest.cc", "autofill_manager_unittest.cc", "autofill_merge_unittest.cc", "autofill_metrics_unittest.cc", "autofill_profile_unittest.cc", "autofill_type_unittest.cc", "contact_info_unittest.cc", "country_names_unittest.cc", "credit_card_field_unittest.cc", "credit_card_unittest.cc", "field_candidates_unittest.cc", "form_field_unittest.cc", "form_structure_unittest.cc", "legal_message_line_unittest.cc", "name_field_unittest.cc", "options_util_unittest.cc", "password_generator_unittest.cc", "personal_data_manager_unittest.cc", "phone_field_unittest.cc", "phone_number_i18n_unittest.cc", "phone_number_unittest.cc", "ui/card_unmask_prompt_controller_impl_unittest.cc", "validation_unittest.cc", "webdata/autofill_data_type_controller_unittest.cc", "webdata/autofill_profile_syncable_service_unittest.cc", "webdata/autofill_table_unittest.cc", "webdata/autofill_wallet_metadata_syncable_service_unittest.cc", "webdata/web_data_service_unittest.cc", ] deps = [ ":browser", ":test_support", "//base", "//base/test:test_support", "//components/autofill/core/common", "//components/os_crypt", "//components/prefs:test_support", "//components/rappor:test_support", "//components/resources", "//components/signin/core/browser", "//components/signin/core/browser:test_support", "//components/signin/core/common", "//components/strings", "//components/sync_driver", "//components/sync_driver:test_support", "//components/variations", "//components/webdata/common", "//components/webdata_services:test_support", "//google_apis", "//google_apis:test_support", "//net:test_support", "//sql", "//sync", "//sync:test_support_sync_api", "//testing/gmock", "//testing/gtest", "//third_party/libaddressinput:util", "//third_party/libphonenumber", "//ui/base", "//url", ] }