1# Copyright 2016 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.
4
5source_set("autofill") {
6  configs += [ "//build/config/compiler:enable_arc" ]
7  sources = [
8    "address_normalizer_factory.cc",
9    "address_normalizer_factory.h",
10    "autocomplete_history_manager_factory.cc",
11    "autocomplete_history_manager_factory.h",
12    "autofill_log_router_factory.cc",
13    "autofill_log_router_factory.h",
14    "autofill_profile_validator_factory.cc",
15    "autofill_profile_validator_factory.h",
16    "form_input_suggestions_provider.h",
17    "form_suggestion_controller.h",
18    "form_suggestion_controller.mm",
19    "form_suggestion_label.h",
20    "form_suggestion_label.mm",
21    "form_suggestion_tab_helper.h",
22    "form_suggestion_tab_helper.mm",
23    "form_suggestion_view.h",
24    "form_suggestion_view.mm",
25    "personal_data_manager_factory.cc",
26    "personal_data_manager_factory.h",
27    "strike_database_factory.cc",
28    "strike_database_factory.h",
29    "validation_rules_storage_factory.cc",
30    "validation_rules_storage_factory.h",
31  ]
32  deps = [
33    ":autofill_shared",
34    "resources:autofill_close",
35    "resources:autofill_close_pressed",
36    "resources:autofill_keyboard_background",
37    "resources:autofill_keyboard_background_left",
38    "resources:autofill_keyboard_background_right",
39    "resources:autofill_left_sep",
40    "resources:autofill_left_sep_RTL",
41    "resources:autofill_middle_sep",
42    "resources:autofill_next",
43    "resources:autofill_next_inactive",
44    "resources:autofill_next_pressed",
45    "resources:autofill_prev",
46    "resources:autofill_prev_inactive",
47    "resources:autofill_prev_pressed",
48    "resources:autofill_right_sep",
49    "resources:autofill_right_sep_RTL",
50    "//base",
51    "//base:i18n",
52    "//components/autofill/core/browser",
53    "//components/autofill/ios/browser",
54    "//components/autofill/ios/form_util",
55    "//components/keyed_service/core",
56    "//components/keyed_service/ios",
57    "//components/leveldb_proto",
58    "//components/prefs",
59    "//components/variations/service",
60    "//ios/chrome/app/strings",
61    "//ios/chrome/browser",
62    "//ios/chrome/browser/browser_state",
63    "//ios/chrome/browser/history",
64    "//ios/chrome/browser/passwords:passwords_generation_utils",
65    "//ios/chrome/browser/signin",
66    "//ios/chrome/browser/ui/autofill/manual_fill:manual_fill_ui",
67    "//ios/chrome/browser/ui/image_util",
68    "//ios/chrome/browser/ui/util",
69    "//ios/chrome/browser/webdata_services",
70    "//ios/chrome/common/ui/colors",
71    "//ios/chrome/common/ui/util",
72    "//ios/web/common",
73    "//ios/web/public/deprecated",
74    "//ios/web/public/js_messaging",
75    "//third_party/leveldatabase",
76    "//third_party/libaddressinput",
77    "//ui/base",
78    "//url",
79  ]
80  public_deps = [ ":constants" ]
81  libs = [ "QuartzCore.framework" ]
82}
83
84source_set("autofill_shared") {
85  configs += [ "//build/config/compiler:enable_arc" ]
86  sources = [
87    "form_input_accessory_view_handler.h",
88    "form_input_accessory_view_handler.mm",
89    "form_input_navigator.h",
90    "form_input_suggestions_provider.h",
91    "form_suggestion_client.h",
92  ]
93  deps = [
94    "//base",
95    "//components/autofill/core/browser",
96    "//components/autofill/ios/browser",
97    "//ios/chrome/browser/ui/util",
98  ]
99  libs = [ "UIKit.framework" ]
100}
101
102source_set("autofill_internal") {
103  configs += [ "//build/config/compiler:enable_arc" ]
104  sources = [
105    "autofill_tab_helper.h",
106    "autofill_tab_helper.mm",
107  ]
108  deps = [
109    ":autofill",
110    "//base",
111    "//components/autofill/core/browser",
112    "//components/autofill/core/common",
113    "//components/autofill/ios/browser",
114    "//components/infobars/core",
115    "//components/pref_registry",
116    "//components/prefs",
117    "//ios/chrome/app/strings",
118    "//ios/chrome/browser",
119    "//ios/chrome/browser/browser_state",
120    "//ios/chrome/browser/infobars",
121    "//ios/chrome/browser/signin",
122    "//ios/chrome/browser/ui/autofill",
123    "//third_party/leveldatabase",
124    "//ui/gfx/geometry",
125    "//url",
126  ]
127  libs = [ "UIKit.framework" ]
128}
129
130source_set("constants") {
131  configs += [ "//build/config/compiler:enable_arc" ]
132  sources = [
133    "form_suggestion_constants.h",
134    "form_suggestion_constants.mm",
135  ]
136}
137
138source_set("unit_tests") {
139  configs += [ "//build/config/compiler:enable_arc" ]
140  testonly = true
141  sources = [
142    "autofill_controller_js_unittest.mm",
143    "autofill_controller_unittest.mm",
144    "form_input_accessory_view_handler_unittest.mm",
145    "form_structure_browsertest.mm",
146    "form_suggestion_controller_unittest.mm",
147    "js_autofill_manager_unittest.mm",
148    "js_suggestion_manager_unittest.mm",
149  ]
150  deps = [
151    ":autofill",
152    ":autofill_internal",
153    ":autofill_shared",
154    ":unit_tests_bundle_data",
155    "//base",
156    "//base/test:test_support",
157    "//components/autofill/core/browser",
158    "//components/autofill/core/browser:test_support",
159    "//components/autofill/core/common",
160    "//components/autofill/ios/browser",
161    "//components/autofill/ios/form_util",
162    "//components/autofill/ios/form_util:test_support",
163    "//components/infobars/core",
164    "//components/keyed_service/core",
165    "//components/security_state/ios",
166    "//ios/chrome/browser",
167    "//ios/chrome/browser/browser_state:test_support",
168    "//ios/chrome/browser/infobars",
169    "//ios/chrome/browser/ssl",
170    "//ios/chrome/browser/ui/autofill",
171    "//ios/chrome/browser/ui/autofill/form_input_accessory",
172    "//ios/chrome/browser/ui/coordinators:chrome_coordinators",
173    "//ios/chrome/browser/ui/settings:test_support",
174    "//ios/chrome/browser/ui/util",
175    "//ios/chrome/browser/web:test_support",
176    "//ios/chrome/browser/web:web_internal",
177    "//ios/chrome/browser/webdata_services",
178    "//ios/testing:block_swizzler",
179    "//ios/web/public/deprecated",
180    "//ios/web/public/js_messaging",
181    "//ios/web/public/test",
182    "//testing/gtest",
183    "//third_party/leveldatabase",
184    "//third_party/ocmock",
185    "//ui/base:test_support",
186  ]
187}
188
189bundle_data("unit_tests_bundle_data") {
190  sources = [
191    "//components/test/data/autofill/heuristics/input/000_i18n_de.html",
192    "//components/test/data/autofill/heuristics/input/001_i18n_de2.html",
193    "//components/test/data/autofill/heuristics/input/002_i18n_en.html",
194    "//components/test/data/autofill/heuristics/input/003_i18n_es.html",
195    "//components/test/data/autofill/heuristics/input/004_i18n_fr.html",
196    "//components/test/data/autofill/heuristics/input/005_i18n_it.html",
197    "//components/test/data/autofill/heuristics/input/006_i18n_ja.html",
198    "//components/test/data/autofill/heuristics/input/007_i18n_ko.html",
199    "//components/test/data/autofill/heuristics/input/008_i18n_pt.html",
200    "//components/test/data/autofill/heuristics/input/009_i18n_ru.html",
201    "//components/test/data/autofill/heuristics/input/010_i18n_zh_cn.html",
202    "//components/test/data/autofill/heuristics/input/011_i18n_zh_tw.html",
203    "//components/test/data/autofill/heuristics/input/012_autocomplete_attribute_advanced.html",
204    "//components/test/data/autofill/heuristics/input/013_autocomplete_attribute_basic.html",
205    "//components/test/data/autofill/heuristics/input/014_autocomplete_attribute_invalid.html",
206    "//components/test/data/autofill/heuristics/input/015_autocomplete_attribute_malicious.html",
207    "//components/test/data/autofill/heuristics/input/016_misc_phones.html",
208    "//components/test/data/autofill/heuristics/input/017_checkout_advanceautoparts.com.html",
209    "//components/test/data/autofill/heuristics/input/018_checkout_ae.com.html",
210    "//components/test/data/autofill/heuristics/input/019_checkout_bedbathandbeyond.com.html",
211    "//components/test/data/autofill/heuristics/input/020_checkout_cafepress.com.html",
212    "//components/test/data/autofill/heuristics/input/021_checkout_cduniverse.com.html",
213    "//components/test/data/autofill/heuristics/input/022_checkout_crutchfield.com.html",
214    "//components/test/data/autofill/heuristics/input/023_checkout_gamestop.com.html",
215    "//components/test/data/autofill/heuristics/input/024_checkout_homedepot.com.html",
216    "//components/test/data/autofill/heuristics/input/025_checkout_hsn.com.html",
217    "//components/test/data/autofill/heuristics/input/026_checkout_ikea.com.html",
218    "//components/test/data/autofill/heuristics/input/027_checkout_jcrew.com.html",
219    "//components/test/data/autofill/heuristics/input/028_checkout_jr.com.html",
220    "//components/test/data/autofill/heuristics/input/029_checkout_kohls.com.html",
221    "//components/test/data/autofill/heuristics/input/030_checkout_lowes.com.html",
222    "//components/test/data/autofill/heuristics/input/031_checkout_macys.com.html",
223    "//components/test/data/autofill/heuristics/input/032_checkout_nordstrom.com.html",
224    "//components/test/data/autofill/heuristics/input/033_checkout_officemax.com.html",
225    "//components/test/data/autofill/heuristics/input/034_checkout_overstock.com.html",
226    "//components/test/data/autofill/heuristics/input/035_checkout_petco.com.html",
227    "//components/test/data/autofill/heuristics/input/036_checkout_petsmart.com.html",
228    "//components/test/data/autofill/heuristics/input/037_checkout_qvc.com.html",
229    "//components/test/data/autofill/heuristics/input/038_checkout_sears.com.html",
230    "//components/test/data/autofill/heuristics/input/039_checkout_target.com.html",
231    "//components/test/data/autofill/heuristics/input/040_checkout_urbanoutfitters.com.html",
232    "//components/test/data/autofill/heuristics/input/041_checkout_vitacost.com.html",
233    "//components/test/data/autofill/heuristics/input/042_checkout_williams-sonoma.com.html",
234    "//components/test/data/autofill/heuristics/input/043_register_adobe.com.html",
235    "//components/test/data/autofill/heuristics/input/044_register_amazon.com.html",
236    "//components/test/data/autofill/heuristics/input/045_register_aol.com.html",
237    "//components/test/data/autofill/heuristics/input/046_register_bestbuy.com.html",
238    "//components/test/data/autofill/heuristics/input/047_register_continental.com.html",
239    "//components/test/data/autofill/heuristics/input/048_register_deviantart.com.html",
240    "//components/test/data/autofill/heuristics/input/049_register_ebay.com.html",
241    "//components/test/data/autofill/heuristics/input/050_register_ecomm.dell.com.html",
242    "//components/test/data/autofill/heuristics/input/051_register_epson.com.html",
243    "//components/test/data/autofill/heuristics/input/052_register_google.com.html",
244    "//components/test/data/autofill/heuristics/input/053_register_gymboree.com.html",
245    "//components/test/data/autofill/heuristics/input/054_register_hotels.com.html",
246    "//components/test/data/autofill/heuristics/input/055_register_imdb.com.html",
247    "//components/test/data/autofill/heuristics/input/056_register_jbox.com.html",
248    "//components/test/data/autofill/heuristics/input/057_register_live.com.html",
249    "//components/test/data/autofill/heuristics/input/058_register_livejournal.com.html",
250    "//components/test/data/autofill/heuristics/input/059_register_macys.com.html",
251    "//components/test/data/autofill/heuristics/input/060_register_mcphee.com.html",
252    "//components/test/data/autofill/heuristics/input/061_register_myspace.com.html",
253    "//components/test/data/autofill/heuristics/input/062_register_newegg.com.html",
254    "//components/test/data/autofill/heuristics/input/063_register_officedepot.com.html",
255    "//components/test/data/autofill/heuristics/input/064_register_officemax.com.html",
256    "//components/test/data/autofill/heuristics/input/065_register_pyramidcollection.com.html",
257    "//components/test/data/autofill/heuristics/input/066_register_rediff.com.html",
258    "//components/test/data/autofill/heuristics/input/067_register_rei.com.html",
259    "//components/test/data/autofill/heuristics/input/068_register_rocketlawyer.com.html",
260    "//components/test/data/autofill/heuristics/input/069_register_signup.clicksor.com.html",
261    "//components/test/data/autofill/heuristics/input/070_register_signup.live.com.html",
262    "//components/test/data/autofill/heuristics/input/071_register_sourceforge.net.html",
263    "//components/test/data/autofill/heuristics/input/072_register_supershuttle.com.html",
264    "//components/test/data/autofill/heuristics/input/073_register_target.com.html",
265    "//components/test/data/autofill/heuristics/input/074_register_threadless.com.html",
266    "//components/test/data/autofill/heuristics/input/075_register_trueblue.jetblue.com.html",
267    "//components/test/data/autofill/heuristics/input/076_register_uhaul.com.html",
268    "//components/test/data/autofill/heuristics/input/077_register_yahoo.com.html",
269    "//components/test/data/autofill/heuristics/input/078_crbug_40687.html",
270    "//components/test/data/autofill/heuristics/input/079_crbug_52198.html",
271    "//components/test/data/autofill/heuristics/input/080_crbug_53075.html",
272    "//components/test/data/autofill/heuristics/input/081_crbug_64569.html",
273    "//components/test/data/autofill/heuristics/input/082_crbug_74918.html",
274    "//components/test/data/autofill/heuristics/input/083_crbug_87517.html",
275    "//components/test/data/autofill/heuristics/input/084_crbug_93595.html",
276    "//components/test/data/autofill/heuristics/input/085_crbug_98152.html",
277    "//components/test/data/autofill/heuristics/input/086_crbug_98269.html",
278    "//components/test/data/autofill/heuristics/input/087_crbug_98286.html",
279    "//components/test/data/autofill/heuristics/input/088_crbug_98338.html",
280    "//components/test/data/autofill/heuristics/input/089_crbug_224601.html",
281    "//components/test/data/autofill/heuristics/input/090_crbug_308839.html",
282    "//components/test/data/autofill/heuristics/input/091_crbug_433703.html",
283    "//components/test/data/autofill/heuristics/input/092_checkout_alaskaair.com.html",
284    "//components/test/data/autofill/heuristics/input/093_checkout_m_walmart.com.html",
285    "//components/test/data/autofill/heuristics/input/094_checkout_staples.com.html",
286    "//components/test/data/autofill/heuristics/input/095_landsend.html",
287    "//components/test/data/autofill/heuristics/input/096_llbean.html",
288    "//components/test/data/autofill/heuristics/input/097_register_alaskaair.com.html",
289    "//components/test/data/autofill/heuristics/input/098_register_epson.com.mx.html",
290    "//components/test/data/autofill/heuristics/input/099_checkout_address2lines.html",
291    "//components/test/data/autofill/heuristics/input/100_checkout_costco.com.html",
292    "//components/test/data/autofill/heuristics/input/101_checkout_m_bestbuy.com.html",
293    "//components/test/data/autofill/heuristics/input/102_checkout_m_macys.com.html",
294    "//components/test/data/autofill/heuristics/input/103_checkout_peapod.com.html",
295    "//components/test/data/autofill/heuristics/input/104_checkout_m_kohls.com.html",
296    "//components/test/data/autofill/heuristics/input/105_checkout_m_lowes.com.html",
297    "//components/test/data/autofill/heuristics/input/106_checkout_m_amazon.com.html",
298    "//components/test/data/autofill/heuristics/input/107_checkout_m_apple.com.html",
299    "//components/test/data/autofill/heuristics/input/108_checkout_m_gap.com.html",
300    "//components/test/data/autofill/heuristics/input/109_checkout_m_nordstroms.com.html",
301    "//components/test/data/autofill/heuristics/input/110_checkout_harryanddavid.com.html",
302    "//components/test/data/autofill/heuristics/input/111_checkout_virgin_america.com.html",
303    "//components/test/data/autofill/heuristics/input/112_checkout_m_llbean.com.html",
304    "//components/test/data/autofill/heuristics/input/113_guest_checkout_peapod.com.html",
305    "//components/test/data/autofill/heuristics/input/114_cc_checkout_wayfair.com.html",
306    "//components/test/data/autofill/heuristics/input/115_checkout_walgreens.com.html",
307    "//components/test/data/autofill/heuristics/input/116_cc_checkout_walgreens.com.html",
308    "//components/test/data/autofill/heuristics/input/117_cc_checkout_macys.com.html",
309    "//components/test/data/autofill/heuristics/input/118_checkout_cvs.com.html",
310    "//components/test/data/autofill/heuristics/input/119_bug_465571.html",
311    "//components/test/data/autofill/heuristics/input/120_bug_447332.html",
312    "//components/test/data/autofill/heuristics/input/121_bug_454366.html",
313    "//components/test/data/autofill/heuristics/input/122_bug_454366b.html",
314    "//components/test/data/autofill/heuristics/input/123_bug_459132.html",
315    "//components/test/data/autofill/heuristics/input/124_bug_460832.html",
316    "//components/test/data/autofill/heuristics/input/125_bug_462080.html",
317    "//components/test/data/autofill/heuristics/input/126_bug_463856.html",
318    "//components/test/data/autofill/heuristics/input/127_bug_463986.html",
319    "//components/test/data/autofill/heuristics/input/128_bug_464002.html",
320    "//components/test/data/autofill/heuristics/input/129_bug_465053.html",
321    "//components/test/data/autofill/heuristics/input/130_bug_465576.html",
322    "//components/test/data/autofill/heuristics/input/131_bug_465587.html",
323    "//components/test/data/autofill/heuristics/input/132_bug_469012.html",
324    "//components/test/data/autofill/heuristics/input/133_bug_469472.html",
325    "//components/test/data/autofill/heuristics/input/134_bug_471748.html",
326    "//components/test/data/autofill/heuristics/input/135_bug_471831.html",
327    "//components/test/data/autofill/heuristics/input/136_bug_497850.html",
328    "//components/test/data/autofill/heuristics/input/137_bug_555010.html",
329    "//components/test/data/autofill/heuristics/input/138_cc_checkout_united.com.html",
330    "//components/test/data/autofill/heuristics/input/139_bug_594475.html",
331    "//components/test/data/autofill/heuristics/input/140_checkout_nike.com.html",
332    "//components/test/data/autofill/heuristics/input/141_checkout_cc_keurig.com.html",
333    "//components/test/data/autofill/heuristics/input/142_cc_checkout_netaporter.com.html",
334    "//components/test/data/autofill/heuristics/input/143_cc_checkout_efollet.com.html",
335    "//components/test/data/autofill/heuristics/input/144_cc_checkout_m_jcp.com.html",
336    "//components/test/data/autofill/heuristics/input/145_hal-india.com.html",
337    "//components/test/data/autofill/heuristics/input/146_checkout_store.scholastic.com.html",
338    "//components/test/data/autofill/heuristics/input/147_panera.custhelp.com_app_ask.html",
339    "//components/test/data/autofill/heuristics/input/148_payment_dickblick.com.html",
340    "//components/test/data/autofill/heuristics/input/149_checkout_qvc.com_non_hidden.html",
341    "//components/test/data/autofill/heuristics/input/150_checkout_venus.com_search_field.html",
342    "//components/test/data/autofill/heuristics/input/151_ticketmaster.com.html",
343    "//components/test/data/autofill/heuristics/input/153_fmm-en_inm.gob.mx.html",
344    "//components/test/data/autofill/heuristics/input/154_fmm-es_inm.gob.mx.html",
345    "//components/test/data/autofill/heuristics/input/155_fmm-ja_inm.gob.mx.html",
346    "//components/test/data/autofill/heuristics/input/156_buyAlbum_bandcamp.com_price.html",
347    "//components/test/data/autofill/heuristics/input/157_bug_971402_opentable_checkout.html",
348    "//components/test/data/autofill/heuristics/input/159_bug_966406_transavia.com.html",
349    "//components/test/data/autofill/heuristics/output/000_i18n_de.out",
350    "//components/test/data/autofill/heuristics/output/001_i18n_de2.out",
351    "//components/test/data/autofill/heuristics/output/002_i18n_en.out",
352    "//components/test/data/autofill/heuristics/output/003_i18n_es.out",
353    "//components/test/data/autofill/heuristics/output/004_i18n_fr.out",
354    "//components/test/data/autofill/heuristics/output/005_i18n_it.out",
355    "//components/test/data/autofill/heuristics/output/006_i18n_ja.out",
356    "//components/test/data/autofill/heuristics/output/007_i18n_ko.out",
357    "//components/test/data/autofill/heuristics/output/008_i18n_pt.out",
358    "//components/test/data/autofill/heuristics/output/009_i18n_ru.out",
359    "//components/test/data/autofill/heuristics/output/010_i18n_zh_cn.out",
360    "//components/test/data/autofill/heuristics/output/011_i18n_zh_tw.out",
361    "//components/test/data/autofill/heuristics/output/012_autocomplete_attribute_advanced.out",
362    "//components/test/data/autofill/heuristics/output/013_autocomplete_attribute_basic.out",
363    "//components/test/data/autofill/heuristics/output/014_autocomplete_attribute_invalid.out",
364    "//components/test/data/autofill/heuristics/output/015_autocomplete_attribute_malicious.out",
365    "//components/test/data/autofill/heuristics/output/016_misc_phones.out",
366    "//components/test/data/autofill/heuristics/output/017_checkout_advanceautoparts.com.out",
367    "//components/test/data/autofill/heuristics/output/018_checkout_ae.com.out",
368    "//components/test/data/autofill/heuristics/output/019_checkout_bedbathandbeyond.com.out",
369    "//components/test/data/autofill/heuristics/output/020_checkout_cafepress.com.out",
370    "//components/test/data/autofill/heuristics/output/021_checkout_cduniverse.com.out",
371    "//components/test/data/autofill/heuristics/output/022_checkout_crutchfield.com.out",
372    "//components/test/data/autofill/heuristics/output/023_checkout_gamestop.com.out",
373    "//components/test/data/autofill/heuristics/output/024_checkout_homedepot.com.out",
374    "//components/test/data/autofill/heuristics/output/025_checkout_hsn.com.out",
375    "//components/test/data/autofill/heuristics/output/026_checkout_ikea.com.out",
376    "//components/test/data/autofill/heuristics/output/027_checkout_jcrew.com.out",
377    "//components/test/data/autofill/heuristics/output/028_checkout_jr.com.out",
378    "//components/test/data/autofill/heuristics/output/029_checkout_kohls.com.out",
379    "//components/test/data/autofill/heuristics/output/030_checkout_lowes.com.out",
380    "//components/test/data/autofill/heuristics/output/031_checkout_macys.com.out",
381    "//components/test/data/autofill/heuristics/output/032_checkout_nordstrom.com.out",
382    "//components/test/data/autofill/heuristics/output/033_checkout_officemax.com.out",
383    "//components/test/data/autofill/heuristics/output/034_checkout_overstock.com.out",
384    "//components/test/data/autofill/heuristics/output/035_checkout_petco.com.out",
385    "//components/test/data/autofill/heuristics/output/036_checkout_petsmart.com.out",
386    "//components/test/data/autofill/heuristics/output/037_checkout_qvc.com.out",
387    "//components/test/data/autofill/heuristics/output/038_checkout_sears.com.out",
388    "//components/test/data/autofill/heuristics/output/039_checkout_target.com.out",
389    "//components/test/data/autofill/heuristics/output/040_checkout_urbanoutfitters.com.out",
390    "//components/test/data/autofill/heuristics/output/041_checkout_vitacost.com.out",
391    "//components/test/data/autofill/heuristics/output/042_checkout_williams-sonoma.com.out",
392    "//components/test/data/autofill/heuristics/output/043_register_adobe.com.out",
393    "//components/test/data/autofill/heuristics/output/044_register_amazon.com.out",
394    "//components/test/data/autofill/heuristics/output/045_register_aol.com.out",
395    "//components/test/data/autofill/heuristics/output/046_register_bestbuy.com.out",
396    "//components/test/data/autofill/heuristics/output/047_register_continental.com.out",
397    "//components/test/data/autofill/heuristics/output/048_register_deviantart.com.out",
398    "//components/test/data/autofill/heuristics/output/049_register_ebay.com.out",
399    "//components/test/data/autofill/heuristics/output/050_register_ecomm.dell.com.out",
400    "//components/test/data/autofill/heuristics/output/051_register_epson.com.out",
401    "//components/test/data/autofill/heuristics/output/052_register_google.com.out",
402    "//components/test/data/autofill/heuristics/output/053_register_gymboree.com.out",
403    "//components/test/data/autofill/heuristics/output/054_register_hotels.com.out",
404    "//components/test/data/autofill/heuristics/output/055_register_imdb.com.out",
405    "//components/test/data/autofill/heuristics/output/056_register_jbox.com.out",
406    "//components/test/data/autofill/heuristics/output/057_register_live.com.out",
407    "//components/test/data/autofill/heuristics/output/058_register_livejournal.com.out",
408    "//components/test/data/autofill/heuristics/output/059_register_macys.com.out",
409    "//components/test/data/autofill/heuristics/output/060_register_mcphee.com.out",
410    "//components/test/data/autofill/heuristics/output/061_register_myspace.com.out",
411    "//components/test/data/autofill/heuristics/output/062_register_newegg.com.out",
412    "//components/test/data/autofill/heuristics/output/063_register_officedepot.com.out",
413    "//components/test/data/autofill/heuristics/output/064_register_officemax.com.out",
414    "//components/test/data/autofill/heuristics/output/065_register_pyramidcollection.com.out",
415    "//components/test/data/autofill/heuristics/output/066_register_rediff.com.out",
416    "//components/test/data/autofill/heuristics/output/067_register_rei.com.out",
417    "//components/test/data/autofill/heuristics/output/068_register_rocketlawyer.com.out",
418    "//components/test/data/autofill/heuristics/output/069_register_signup.clicksor.com.out",
419    "//components/test/data/autofill/heuristics/output/070_register_signup.live.com.out",
420    "//components/test/data/autofill/heuristics/output/071_register_sourceforge.net.out",
421    "//components/test/data/autofill/heuristics/output/072_register_supershuttle.com.out",
422    "//components/test/data/autofill/heuristics/output/073_register_target.com.out",
423    "//components/test/data/autofill/heuristics/output/074_register_threadless.com.out",
424    "//components/test/data/autofill/heuristics/output/075_register_trueblue.jetblue.com.out",
425    "//components/test/data/autofill/heuristics/output/076_register_uhaul.com.out",
426    "//components/test/data/autofill/heuristics/output/077_register_yahoo.com.out",
427    "//components/test/data/autofill/heuristics/output/078_crbug_40687.out",
428    "//components/test/data/autofill/heuristics/output/079_crbug_52198.out",
429    "//components/test/data/autofill/heuristics/output/080_crbug_53075.out",
430    "//components/test/data/autofill/heuristics/output/081_crbug_64569.out",
431    "//components/test/data/autofill/heuristics/output/082_crbug_74918.out",
432    "//components/test/data/autofill/heuristics/output/083_crbug_87517.out",
433    "//components/test/data/autofill/heuristics/output/084_crbug_93595.out",
434    "//components/test/data/autofill/heuristics/output/085_crbug_98152.out",
435    "//components/test/data/autofill/heuristics/output/086_crbug_98269.out",
436    "//components/test/data/autofill/heuristics/output/087_crbug_98286.out",
437    "//components/test/data/autofill/heuristics/output/088_crbug_98338.out",
438    "//components/test/data/autofill/heuristics/output/089_crbug_224601.out",
439    "//components/test/data/autofill/heuristics/output/090_crbug_308839.out",
440    "//components/test/data/autofill/heuristics/output/091_crbug_433703.out",
441    "//components/test/data/autofill/heuristics/output/092_checkout_alaskaair.com.out",
442    "//components/test/data/autofill/heuristics/output/093_checkout_m_walmart.com.out",
443    "//components/test/data/autofill/heuristics/output/094_checkout_staples.com.out",
444    "//components/test/data/autofill/heuristics/output/095_landsend.out",
445    "//components/test/data/autofill/heuristics/output/096_llbean.out",
446    "//components/test/data/autofill/heuristics/output/097_register_alaskaair.com.out",
447    "//components/test/data/autofill/heuristics/output/098_register_epson.com.mx.out",
448    "//components/test/data/autofill/heuristics/output/099_checkout_address2lines.out",
449    "//components/test/data/autofill/heuristics/output/100_checkout_costco.com.out",
450    "//components/test/data/autofill/heuristics/output/101_checkout_m_bestbuy.com.out",
451    "//components/test/data/autofill/heuristics/output/102_checkout_m_macys.com.out",
452    "//components/test/data/autofill/heuristics/output/103_checkout_peapod.com.out",
453    "//components/test/data/autofill/heuristics/output/104_checkout_m_kohls.com.out",
454    "//components/test/data/autofill/heuristics/output/105_checkout_m_lowes.com.out",
455    "//components/test/data/autofill/heuristics/output/106_checkout_m_amazon.com.out",
456    "//components/test/data/autofill/heuristics/output/107_checkout_m_apple.com.out",
457    "//components/test/data/autofill/heuristics/output/108_checkout_m_gap.com.out",
458    "//components/test/data/autofill/heuristics/output/109_checkout_m_nordstroms.com.out",
459    "//components/test/data/autofill/heuristics/output/110_checkout_harryanddavid.com.out",
460    "//components/test/data/autofill/heuristics/output/111_checkout_virgin_america.com.out",
461    "//components/test/data/autofill/heuristics/output/112_checkout_m_llbean.com.out",
462    "//components/test/data/autofill/heuristics/output/113_guest_checkout_peapod.com.out",
463    "//components/test/data/autofill/heuristics/output/114_cc_checkout_wayfair.com.out",
464    "//components/test/data/autofill/heuristics/output/115_checkout_walgreens.com.out",
465    "//components/test/data/autofill/heuristics/output/116_cc_checkout_walgreens.com.out",
466    "//components/test/data/autofill/heuristics/output/117_cc_checkout_macys.com.out",
467    "//components/test/data/autofill/heuristics/output/118_checkout_cvs.com.out",
468    "//components/test/data/autofill/heuristics/output/119_bug_465571.out",
469    "//components/test/data/autofill/heuristics/output/120_bug_447332.out",
470    "//components/test/data/autofill/heuristics/output/121_bug_454366.out",
471    "//components/test/data/autofill/heuristics/output/122_bug_454366b.out",
472    "//components/test/data/autofill/heuristics/output/123_bug_459132.out",
473    "//components/test/data/autofill/heuristics/output/124_bug_460832.out",
474    "//components/test/data/autofill/heuristics/output/125_bug_462080.out",
475    "//components/test/data/autofill/heuristics/output/126_bug_463856.out",
476    "//components/test/data/autofill/heuristics/output/127_bug_463986.out",
477    "//components/test/data/autofill/heuristics/output/128_bug_464002.out",
478    "//components/test/data/autofill/heuristics/output/129_bug_465053.out",
479    "//components/test/data/autofill/heuristics/output/130_bug_465576.out",
480    "//components/test/data/autofill/heuristics/output/131_bug_465587.out",
481    "//components/test/data/autofill/heuristics/output/132_bug_469012.out",
482    "//components/test/data/autofill/heuristics/output/133_bug_469472.out",
483    "//components/test/data/autofill/heuristics/output/134_bug_471748.out",
484    "//components/test/data/autofill/heuristics/output/135_bug_471831.out",
485    "//components/test/data/autofill/heuristics/output/136_bug_497850.out",
486    "//components/test/data/autofill/heuristics/output/137_bug_555010.out",
487    "//components/test/data/autofill/heuristics/output/138_cc_checkout_united.com.out",
488    "//components/test/data/autofill/heuristics/output/139_bug_594475.out",
489    "//components/test/data/autofill/heuristics/output/140_checkout_nike.com.out",
490    "//components/test/data/autofill/heuristics/output/141_checkout_cc_keurig.com.out",
491    "//components/test/data/autofill/heuristics/output/142_cc_checkout_netaporter.com.out",
492    "//components/test/data/autofill/heuristics/output/143_cc_checkout_efollet.com.out",
493    "//components/test/data/autofill/heuristics/output/144_cc_checkout_m_jcp.com.out",
494    "//components/test/data/autofill/heuristics/output/145_hal-india.com.out",
495    "//components/test/data/autofill/heuristics/output/146_checkout_store.scholastic.com.out",
496    "//components/test/data/autofill/heuristics/output/147_panera.custhelp.com_app_ask.out",
497    "//components/test/data/autofill/heuristics/output/148_payment_dickblick.com.out",
498    "//components/test/data/autofill/heuristics/output/149_checkout_qvc.com_non_hidden.out",
499    "//components/test/data/autofill/heuristics/output/150_checkout_venus.com_search_field.out",
500    "//components/test/data/autofill/heuristics/output/151_ticketmaster.com.out",
501    "//components/test/data/autofill/heuristics/output/153_fmm-en_inm.gob.mx.out",
502    "//components/test/data/autofill/heuristics/output/154_fmm-es_inm.gob.mx.out",
503    "//components/test/data/autofill/heuristics/output/155_fmm-ja_inm.gob.mx.out",
504    "//components/test/data/autofill/heuristics/output/156_buyAlbum_bandcamp.com_price.out",
505    "//components/test/data/autofill/heuristics/output/157_bug_971402_opentable_checkout.out",
506    "//components/test/data/autofill/heuristics/output/159_bug_966406_transavia.com.out",
507  ]
508  outputs = [ "{{bundle_resources_dir}}/" +
509              "{{source_root_relative_dir}}/{{source_file_part}}" ]
510}
511
512source_set("eg_tests") {
513  defines = [ "CHROME_EARL_GREY_1" ]
514  configs += [ "//build/config/compiler:enable_arc" ]
515  testonly = true
516  sources = [ "form_input_egtest.mm" ]
517  deps = [
518    ":autofill",
519    "//base",
520    "//base/test:test_support",
521    "//components/autofill/ios/browser:browser",
522    "//ios/chrome/app/strings",
523    "//ios/chrome/browser/autofill:autofill_shared",
524    "//ios/chrome/browser/ui/util",
525    "//ios/chrome/test:eg_test_support",
526    "//ios/chrome/test/app:test_support",
527    "//ios/chrome/test/earl_grey:test_support",
528    "//ios/testing/earl_grey:earl_grey_support",
529    "//ios/third_party/earl_grey:earl_grey+link",
530    "//ios/web:earl_grey_test_support",
531    "//ios/web/public/deprecated",
532    "//ios/web/public/test:element_selector",
533    "//ios/web/public/test/http_server",
534  ]
535}
536
537source_set("eg2_tests") {
538  defines = [ "CHROME_EARL_GREY_2" ]
539  configs += [
540    "//build/config/compiler:enable_arc",
541    "//build/config/ios:xctest_config",
542  ]
543  testonly = true
544  sources = [ "form_input_egtest.mm" ]
545  deps = [
546    "//base",
547    "//base/test:test_support",
548    "//ios/chrome/app/strings:ios_strings_grit",
549    "//ios/chrome/test:eg_test_support+eg2",
550    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
551    "//ios/testing/earl_grey:eg_test_support+eg2",
552    "//ios/third_party/earl_grey2:test_lib",
553    "//ios/web/public",
554    "//ios/web/public/deprecated",
555    "//ios/web/public/test:element_selector",
556    "//ios/web/public/test/http_server",
557  ]
558  libs = [ "UIKit.framework" ]
559}
560