Autofill: Add WalletIntegrationAvailable() to components.
[chromium-blink-merge.git] / components / autofill / core / browser / BUILD.gn
blob2d4c79e61efd753ecca4efbf6997077f7901cdb1
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # GYP version: components/autofill.gyp:autofill_core_browser
6 static_library("browser") {
7   sources = [
8     "address.cc",
9     "address.h",
10     "address_field.cc",
11     "address_field.h",
12     "address_i18n.cc",
13     "address_i18n.h",
14     "autocomplete_history_manager.cc",
15     "autocomplete_history_manager.h",
16     "autofill-inl.h",
17     "autofill_cc_infobar_delegate.cc",
18     "autofill_cc_infobar_delegate.h",
19     "autofill_client.h",
20     "autofill_country.cc",
21     "autofill_country.h",
22     "autofill_data_model.cc",
23     "autofill_data_model.h",
24     "autofill_download_manager.cc",
25     "autofill_download_manager.h",
26     "autofill_driver.h",
27     "autofill_experiments.cc",
28     "autofill_experiments.h",
29     "autofill_external_delegate.cc",
30     "autofill_external_delegate.h",
31     "autofill_field.cc",
32     "autofill_field.h",
33     "autofill_ie_toolbar_import_win.cc",
34     "autofill_ie_toolbar_import_win.h",
35     "autofill_manager.cc",
36     "autofill_manager.h",
37     "autofill_manager_test_delegate.h",
38     "autofill_metrics.cc",
39     "autofill_metrics.h",
40     "autofill_popup_delegate.h",
41     "autofill_profile.cc",
42     "autofill_profile.h",
43     "autofill_regex_constants.cc",
44     "autofill_regex_constants.h",
45     "autofill_scanner.cc",
46     "autofill_scanner.h",
47     "autofill_server_field_info.h",
48     "autofill_sync_constants.cc",
49     "autofill_sync_constants.h",
50     "autofill_type.cc",
51     "autofill_type.h",
52     "autofill_xml_parser.cc",
53     "autofill_xml_parser.h",
54     "card_unmask_delegate.cc",
55     "card_unmask_delegate.h",
56     "contact_info.cc",
57     "contact_info.h",
58     "credit_card.cc",
59     "credit_card.h",
60     "credit_card_field.cc",
61     "credit_card_field.h",
62     "detail_input.cc",
63     "detail_input.h",
64     "dialog_section.h",
65     "email_field.cc",
66     "email_field.h",
67     "field_types.h",
68     "form_field.cc",
69     "form_field.h",
70     "form_group.cc",
71     "form_group.h",
72     "form_structure.cc",
73     "form_structure.h",
74     "name_field.cc",
75     "name_field.h",
76     "options_util.cc",
77     "options_util.h",
78     "password_generator.cc",
79     "password_generator.h",
80     "personal_data_manager.cc",
81     "personal_data_manager.h",
82     "personal_data_manager_mac.mm",
83     "personal_data_manager_observer.h",
84     "phone_field.cc",
85     "phone_field.h",
86     "phone_number.cc",
87     "phone_number.h",
88     "phone_number_i18n.cc",
89     "phone_number_i18n.h",
90     "popup_item_ids.h",
91     "server_field_types_util.cc",
92     "server_field_types_util.h",
93     "state_names.cc",
94     "state_names.h",
95     "suggestion.cc",
96     "suggestion.h",
97     "validation.cc",
98     "validation.h",
99     "wallet/real_pan_wallet_client.cc",
100     "wallet/real_pan_wallet_client.h",
101     "webdata/autocomplete_syncable_service.cc",
102     "webdata/autocomplete_syncable_service.h",
103     "webdata/autofill_change.cc",
104     "webdata/autofill_change.h",
105     "webdata/autofill_entry.cc",
106     "webdata/autofill_entry.h",
107     "webdata/autofill_profile_syncable_service.cc",
108     "webdata/autofill_profile_syncable_service.h",
109     "webdata/autofill_table.cc",
110     "webdata/autofill_table.h",
111     "webdata/autofill_wallet_syncable_service.cc",
112     "webdata/autofill_wallet_syncable_service.h",
113     "webdata/autofill_webdata.h",
114     "webdata/autofill_webdata_backend.h",
115     "webdata/autofill_webdata_backend_impl.cc",
116     "webdata/autofill_webdata_backend_impl.h",
117     "webdata/autofill_webdata_service.cc",
118     "webdata/autofill_webdata_service.h",
119     "webdata/autofill_webdata_service_observer.h",
120   ]
122   deps = [
123     "//base",
124     "//base:i18n",
125     "//base:prefs",
126     "//components/autofill/core/common",
127     "//components/infobars/core",
128     "//components/keyed_service/core",
129     "//components/os_crypt",
130     "//components/pref_registry",
131     "//components/resources",
132     "//components/signin/core/common",
133     "//components/strings",
134     "//components/webdata/common",
135     "//google_apis",
136     "//net",
137     "//skia",
138     "//sql",
139     "//sync",
140     "//third_party/fips181",
141     "//third_party/icu",
142     "//third_party/libaddressinput:util",
143     "//third_party/libphonenumber",
144     "//third_party/libjingle",
145     "//ui/base",
146     "//ui/gfx",
147     "//ui/gfx/geometry",
148     "//url",
149   ]
151   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
153   if (is_mac) {
154     libs = [ "AddressBook.framework" ]
155   }
158 static_library("test_support") {
159   testonly = true
160   sources = [
161     "autofill_test_utils.cc",
162     "autofill_test_utils.h",
163     "data_driven_test.cc",
164     "data_driven_test.h",
165     "suggestion_test_helpers.h",
166     "test_autofill_client.cc",
167     "test_autofill_client.h",
168     "test_autofill_driver.cc",
169     "test_autofill_driver.h",
170     "test_autofill_external_delegate.cc",
171     "test_autofill_external_delegate.h",
172     "test_personal_data_manager.cc",
173     "test_personal_data_manager.h",
174   ]
176   deps = [
177     ":browser",
178     "//base",
179     "//base:prefs",
180     "//base:prefs_test_support",
181     "//base/test:test_support",
182     "//components/autofill/core/browser",
183     "//components/autofill/core/common",
184     "//components/os_crypt",
185     "//components/pref_registry",
186     "//components/rappor",
187     "//google_apis:test_support",
188     "//skia",
189     "//testing/gtest",
190   ]
193 source_set("unit_tests") {
194   testonly = true
195   sources = [
196     "address_field_unittest.cc",
197     "address_unittest.cc",
198     "autocomplete_history_manager_unittest.cc",
199     "autofill_country_unittest.cc",
200     "autofill_data_model_unittest.cc",
201     "autofill_download_manager_unittest.cc",
202     "autofill_external_delegate_unittest.cc",
203     "autofill_field_unittest.cc",
204     "autofill_ie_toolbar_import_win_unittest.cc",
205     "autofill_manager_unittest.cc",
206     "autofill_merge_unittest.cc",
207     "autofill_metrics_unittest.cc",
208     "autofill_profile_unittest.cc",
209     "autofill_type_unittest.cc",
210     "autofill_xml_parser_unittest.cc",
211     "contact_info_unittest.cc",
212     "credit_card_field_unittest.cc",
213     "credit_card_unittest.cc",
214     "form_field_unittest.cc",
215     "form_structure_unittest.cc",
216     "name_field_unittest.cc",
217     "password_generator_unittest.cc",
218     "personal_data_manager_unittest.cc",
219     "phone_field_unittest.cc",
220     "phone_number_i18n_unittest.cc",
221     "phone_number_unittest.cc",
222     "validation_unittest.cc",
223     "webdata/autofill_profile_syncable_service_unittest.cc",
224     "webdata/autofill_table_unittest.cc",
225     "webdata/web_data_service_unittest.cc",
226   ]
228   deps = [
229     ":browser",
230     ":test_support",
231     "//base",
232     "//base:prefs",
233     "//base/test:test_support",
234     "//components/autofill/core/common",
235     "//components/os_crypt",
236     "//components/rappor:test_support",
237     "//components/resources",
238     "//components/signin/core/browser:test_support",
239     "//components/strings",
240     "//components/webdata/common",
241     "//net:test_support",
242     "//sql",
243     "//sync",
244     "//sync:test_support_sync_api",
245     "//testing/gmock",
246     "//testing/gtest",
247     "//third_party/libphonenumber",
248     "//third_party/libjingle",
249     "//ui/base",
250     "//url",
251   ]