summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/autofill/BUILD.gn
blob: 14875dfa48d81f3750e6ec876707b73b4201c486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
# Copyright 2016 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.

source_set("autofill") {
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "address_normalizer_factory.cc",
    "address_normalizer_factory.h",
    "autocomplete_history_manager_factory.cc",
    "autocomplete_history_manager_factory.h",
    "autofill_log_router_factory.cc",
    "autofill_log_router_factory.h",
    "autofill_profile_validator_factory.cc",
    "autofill_profile_validator_factory.h",
    "form_input_suggestions_provider.h",
    "form_suggestion_controller.h",
    "form_suggestion_controller.mm",
    "form_suggestion_label.h",
    "form_suggestion_label.mm",
    "form_suggestion_tab_helper.h",
    "form_suggestion_tab_helper.mm",
    "form_suggestion_view.h",
    "form_suggestion_view.mm",
    "personal_data_manager_factory.cc",
    "personal_data_manager_factory.h",
    "strike_database_factory.cc",
    "strike_database_factory.h",
    "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/variations/service",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/history",
    "//ios/chrome/browser/passwords:passwords_generation_utils",
    "//ios/chrome/browser/signin",
    "//ios/chrome/browser/ui/autofill/manual_fill:manual_fill_ui",
    "//ios/chrome/browser/ui/image_util",
    "//ios/chrome/browser/ui/util",
    "//ios/chrome/browser/webdata_services",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/util",
    "//ios/web/common",
    "//ios/web/public/deprecated",
    "//ios/web/public/js_messaging",
    "//third_party/leveldatabase",
    "//third_party/libaddressinput",
    "//ui/base",
    "//url",
  ]
  public_deps = [ ":constants" ]
  libs = [ "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",
  ]
  libs = [ "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/app/strings",
    "//ios/chrome/browser",
    "//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",
  ]
  libs = [ "UIKit.framework" ]
}

source_set("constants") {
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "form_suggestion_constants.h",
    "form_suggestion_constants.mm",
  ]
}

source_set("unit_tests") {
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [
    "autofill_controller_js_unittest.mm",
    "autofill_controller_unittest.mm",
    "form_input_accessory_view_handler_unittest.mm",
    "form_structure_browsertest.mm",
    "form_suggestion_controller_unittest.mm",
    "js_autofill_manager_unittest.mm",
    "js_suggestion_manager_unittest.mm",
  ]
  deps = [
    ":autofill",
    ":autofill_internal",
    ":autofill_shared",
    ":unit_tests_bundle_data",
    "//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/form_util",
    "//components/autofill/ios/form_util:test_support",
    "//components/infobars/core",
    "//components/keyed_service/core",
    "//components/password_manager/ios",
    "//components/security_state/ios",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state:test_support",
    "//ios/chrome/browser/infobars",
    "//ios/chrome/browser/passwords",
    "//ios/chrome/browser/ssl",
    "//ios/chrome/browser/ui/autofill",
    "//ios/chrome/browser/ui/autofill/form_input_accessory",
    "//ios/chrome/browser/ui/coordinators:chrome_coordinators",
    "//ios/chrome/browser/ui/settings:test_support",
    "//ios/chrome/browser/ui/util",
    "//ios/chrome/browser/web:test_support",
    "//ios/chrome/browser/web:web_internal",
    "//ios/chrome/browser/webdata_services",
    "//ios/testing:block_swizzler",
    "//ios/web/public/deprecated",
    "//ios/web/public/js_messaging",
    "//ios/web/public/test",
    "//testing/gtest",
    "//third_party/leveldatabase",
    "//third_party/ocmock",
    "//ui/base:test_support",
  ]
}

bundle_data("unit_tests_bundle_data") {
  sources = [
    "//components/test/data/autofill/heuristics/input/000_i18n_de.html",
    "//components/test/data/autofill/heuristics/input/001_i18n_de2.html",
    "//components/test/data/autofill/heuristics/input/002_i18n_en.html",
    "//components/test/data/autofill/heuristics/input/003_i18n_es.html",
    "//components/test/data/autofill/heuristics/input/004_i18n_fr.html",
    "//components/test/data/autofill/heuristics/input/005_i18n_it.html",
    "//components/test/data/autofill/heuristics/input/006_i18n_ja.html",
    "//components/test/data/autofill/heuristics/input/007_i18n_ko.html",
    "//components/test/data/autofill/heuristics/input/008_i18n_pt.html",
    "//components/test/data/autofill/heuristics/input/009_i18n_ru.html",
    "//components/test/data/autofill/heuristics/input/010_i18n_zh_cn.html",
    "//components/test/data/autofill/heuristics/input/011_i18n_zh_tw.html",
    "//components/test/data/autofill/heuristics/input/012_autocomplete_attribute_advanced.html",
    "//components/test/data/autofill/heuristics/input/013_autocomplete_attribute_basic.html",
    "//components/test/data/autofill/heuristics/input/014_autocomplete_attribute_invalid.html",
    "//components/test/data/autofill/heuristics/input/015_autocomplete_attribute_malicious.html",
    "//components/test/data/autofill/heuristics/input/016_misc_phones.html",
    "//components/test/data/autofill/heuristics/input/017_checkout_advanceautoparts.com.html",
    "//components/test/data/autofill/heuristics/input/018_checkout_ae.com.html",
    "//components/test/data/autofill/heuristics/input/019_checkout_bedbathandbeyond.com.html",
    "//components/test/data/autofill/heuristics/input/020_checkout_cafepress.com.html",
    "//components/test/data/autofill/heuristics/input/021_checkout_cduniverse.com.html",
    "//components/test/data/autofill/heuristics/input/022_checkout_crutchfield.com.html",
    "//components/test/data/autofill/heuristics/input/023_checkout_gamestop.com.html",
    "//components/test/data/autofill/heuristics/input/024_checkout_homedepot.com.html",
    "//components/test/data/autofill/heuristics/input/025_checkout_hsn.com.html",
    "//components/test/data/autofill/heuristics/input/026_checkout_ikea.com.html",
    "//components/test/data/autofill/heuristics/input/027_checkout_jcrew.com.html",
    "//components/test/data/autofill/heuristics/input/028_checkout_jr.com.html",
    "//components/test/data/autofill/heuristics/input/029_checkout_kohls.com.html",
    "//components/test/data/autofill/heuristics/input/030_checkout_lowes.com.html",
    "//components/test/data/autofill/heuristics/input/031_checkout_macys.com.html",
    "//components/test/data/autofill/heuristics/input/032_checkout_nordstrom.com.html",
    "//components/test/data/autofill/heuristics/input/033_checkout_officemax.com.html",
    "//components/test/data/autofill/heuristics/input/034_checkout_overstock.com.html",
    "//components/test/data/autofill/heuristics/input/035_checkout_petco.com.html",
    "//components/test/data/autofill/heuristics/input/036_checkout_petsmart.com.html",
    "//components/test/data/autofill/heuristics/input/037_checkout_qvc.com.html",
    "//components/test/data/autofill/heuristics/input/038_checkout_sears.com.html",
    "//components/test/data/autofill/heuristics/input/039_checkout_target.com.html",
    "//components/test/data/autofill/heuristics/input/040_checkout_urbanoutfitters.com.html",
    "//components/test/data/autofill/heuristics/input/041_checkout_vitacost.com.html",
    "//components/test/data/autofill/heuristics/input/042_checkout_williams-sonoma.com.html",
    "//components/test/data/autofill/heuristics/input/043_register_adobe.com.html",
    "//components/test/data/autofill/heuristics/input/044_register_amazon.com.html",
    "//components/test/data/autofill/heuristics/input/045_register_aol.com.html",
    "//components/test/data/autofill/heuristics/input/046_register_bestbuy.com.html",
    "//components/test/data/autofill/heuristics/input/047_register_continental.com.html",
    "//components/test/data/autofill/heuristics/input/048_register_deviantart.com.html",
    "//components/test/data/autofill/heuristics/input/049_register_ebay.com.html",
    "//components/test/data/autofill/heuristics/input/050_register_ecomm.dell.com.html",
    "//components/test/data/autofill/heuristics/input/051_register_epson.com.html",
    "//components/test/data/autofill/heuristics/input/052_register_google.com.html",
    "//components/test/data/autofill/heuristics/input/053_register_gymboree.com.html",
    "//components/test/data/autofill/heuristics/input/054_register_hotels.com.html",
    "//components/test/data/autofill/heuristics/input/055_register_imdb.com.html",
    "//components/test/data/autofill/heuristics/input/056_register_jbox.com.html",
    "//components/test/data/autofill/heuristics/input/057_register_live.com.html",
    "//components/test/data/autofill/heuristics/input/058_register_livejournal.com.html",
    "//components/test/data/autofill/heuristics/input/059_register_macys.com.html",
    "//components/test/data/autofill/heuristics/input/060_register_mcphee.com.html",
    "//components/test/data/autofill/heuristics/input/061_register_myspace.com.html",
    "//components/test/data/autofill/heuristics/input/062_register_newegg.com.html",
    "//components/test/data/autofill/heuristics/input/063_register_officedepot.com.html",
    "//components/test/data/autofill/heuristics/input/064_register_officemax.com.html",
    "//components/test/data/autofill/heuristics/input/065_register_pyramidcollection.com.html",
    "//components/test/data/autofill/heuristics/input/066_register_rediff.com.html",
    "//components/test/data/autofill/heuristics/input/067_register_rei.com.html",
    "//components/test/data/autofill/heuristics/input/068_register_rocketlawyer.com.html",
    "//components/test/data/autofill/heuristics/input/069_register_signup.clicksor.com.html",
    "//components/test/data/autofill/heuristics/input/070_register_signup.live.com.html",
    "//components/test/data/autofill/heuristics/input/071_register_sourceforge.net.html",
    "//components/test/data/autofill/heuristics/input/072_register_supershuttle.com.html",
    "//components/test/data/autofill/heuristics/input/073_register_target.com.html",
    "//components/test/data/autofill/heuristics/input/074_register_threadless.com.html",
    "//components/test/data/autofill/heuristics/input/075_register_trueblue.jetblue.com.html",
    "//components/test/data/autofill/heuristics/input/076_register_uhaul.com.html",
    "//components/test/data/autofill/heuristics/input/077_register_yahoo.com.html",
    "//components/test/data/autofill/heuristics/input/078_crbug_40687.html",
    "//components/test/data/autofill/heuristics/input/079_crbug_52198.html",
    "//components/test/data/autofill/heuristics/input/080_crbug_53075.html",
    "//components/test/data/autofill/heuristics/input/081_crbug_64569.html",
    "//components/test/data/autofill/heuristics/input/082_crbug_74918.html",
    "//components/test/data/autofill/heuristics/input/083_crbug_87517.html",
    "//components/test/data/autofill/heuristics/input/084_crbug_93595.html",
    "//components/test/data/autofill/heuristics/input/085_crbug_98152.html",
    "//components/test/data/autofill/heuristics/input/086_crbug_98269.html",
    "//components/test/data/autofill/heuristics/input/087_crbug_98286.html",
    "//components/test/data/autofill/heuristics/input/088_crbug_98338.html",
    "//components/test/data/autofill/heuristics/input/089_crbug_224601.html",
    "//components/test/data/autofill/heuristics/input/090_crbug_308839.html",
    "//components/test/data/autofill/heuristics/input/091_crbug_433703.html",
    "//components/test/data/autofill/heuristics/input/092_checkout_alaskaair.com.html",
    "//components/test/data/autofill/heuristics/input/093_checkout_m_walmart.com.html",
    "//components/test/data/autofill/heuristics/input/094_checkout_staples.com.html",
    "//components/test/data/autofill/heuristics/input/095_landsend.html",
    "//components/test/data/autofill/heuristics/input/096_llbean.html",
    "//components/test/data/autofill/heuristics/input/097_register_alaskaair.com.html",
    "//components/test/data/autofill/heuristics/input/098_register_epson.com.mx.html",
    "//components/test/data/autofill/heuristics/input/099_checkout_address2lines.html",
    "//components/test/data/autofill/heuristics/input/100_checkout_costco.com.html",
    "//components/test/data/autofill/heuristics/input/101_checkout_m_bestbuy.com.html",
    "//components/test/data/autofill/heuristics/input/102_checkout_m_macys.com.html",
    "//components/test/data/autofill/heuristics/input/103_checkout_peapod.com.html",
    "//components/test/data/autofill/heuristics/input/104_checkout_m_kohls.com.html",
    "//components/test/data/autofill/heuristics/input/105_checkout_m_lowes.com.html",
    "//components/test/data/autofill/heuristics/input/106_checkout_m_amazon.com.html",
    "//components/test/data/autofill/heuristics/input/107_checkout_m_apple.com.html",
    "//components/test/data/autofill/heuristics/input/108_checkout_m_gap.com.html",
    "//components/test/data/autofill/heuristics/input/109_checkout_m_nordstroms.com.html",
    "//components/test/data/autofill/heuristics/input/110_checkout_harryanddavid.com.html",
    "//components/test/data/autofill/heuristics/input/111_checkout_virgin_america.com.html",
    "//components/test/data/autofill/heuristics/input/112_checkout_m_llbean.com.html",
    "//components/test/data/autofill/heuristics/input/113_guest_checkout_peapod.com.html",
    "//components/test/data/autofill/heuristics/input/114_cc_checkout_wayfair.com.html",
    "//components/test/data/autofill/heuristics/input/115_checkout_walgreens.com.html",
    "//components/test/data/autofill/heuristics/input/116_cc_checkout_walgreens.com.html",
    "//components/test/data/autofill/heuristics/input/117_cc_checkout_macys.com.html",
    "//components/test/data/autofill/heuristics/input/118_checkout_cvs.com.html",
    "//components/test/data/autofill/heuristics/input/119_bug_465571.html",
    "//components/test/data/autofill/heuristics/input/120_bug_447332.html",
    "//components/test/data/autofill/heuristics/input/121_bug_454366.html",
    "//components/test/data/autofill/heuristics/input/122_bug_454366b.html",
    "//components/test/data/autofill/heuristics/input/123_bug_459132.html",
    "//components/test/data/autofill/heuristics/input/124_bug_460832.html",
    "//components/test/data/autofill/heuristics/input/125_bug_462080.html",
    "//components/test/data/autofill/heuristics/input/126_bug_463856.html",
    "//components/test/data/autofill/heuristics/input/127_bug_463986.html",
    "//components/test/data/autofill/heuristics/input/128_bug_464002.html",
    "//components/test/data/autofill/heuristics/input/129_bug_465053.html",
    "//components/test/data/autofill/heuristics/input/130_bug_465576.html",
    "//components/test/data/autofill/heuristics/input/131_bug_465587.html",
    "//components/test/data/autofill/heuristics/input/132_bug_469012.html",
    "//components/test/data/autofill/heuristics/input/133_bug_469472.html",
    "//components/test/data/autofill/heuristics/input/134_bug_471748.html",
    "//components/test/data/autofill/heuristics/input/135_bug_471831.html",
    "//components/test/data/autofill/heuristics/input/136_bug_497850.html",
    "//components/test/data/autofill/heuristics/input/137_bug_555010.html",
    "//components/test/data/autofill/heuristics/input/138_cc_checkout_united.com.html",
    "//components/test/data/autofill/heuristics/input/139_bug_594475.html",
    "//components/test/data/autofill/heuristics/input/140_checkout_nike.com.html",
    "//components/test/data/autofill/heuristics/input/141_checkout_cc_keurig.com.html",
    "//components/test/data/autofill/heuristics/input/142_cc_checkout_netaporter.com.html",
    "//components/test/data/autofill/heuristics/input/143_cc_checkout_efollet.com.html",
    "//components/test/data/autofill/heuristics/input/144_cc_checkout_m_jcp.com.html",
    "//components/test/data/autofill/heuristics/input/145_hal-india.com.html",
    "//components/test/data/autofill/heuristics/input/146_checkout_store.scholastic.com.html",
    "//components/test/data/autofill/heuristics/input/147_panera.custhelp.com_app_ask.html",
    "//components/test/data/autofill/heuristics/input/148_payment_dickblick.com.html",
    "//components/test/data/autofill/heuristics/input/149_checkout_qvc.com_non_hidden.html",
    "//components/test/data/autofill/heuristics/input/150_checkout_venus.com_search_field.html",
    "//components/test/data/autofill/heuristics/input/151_ticketmaster.com.html",
    "//components/test/data/autofill/heuristics/input/153_fmm-en_inm.gob.mx.html",
    "//components/test/data/autofill/heuristics/input/154_fmm-es_inm.gob.mx.html",
    "//components/test/data/autofill/heuristics/input/155_fmm-ja_inm.gob.mx.html",
    "//components/test/data/autofill/heuristics/input/156_buyAlbum_bandcamp.com_price.html",
    "//components/test/data/autofill/heuristics/input/157_bug_971402_opentable_checkout.html",
    "//components/test/data/autofill/heuristics/input/158_i18n_ml.html",
    "//components/test/data/autofill/heuristics/input/159_bug_966406_transavia.com.html",
    "//components/test/data/autofill/heuristics/input/160_credit_card_ignore_birthday_fields.html",
    "//components/test/data/autofill/heuristics/input/161_i18n_tr.html",
    "//components/test/data/autofill/heuristics/input/162_i18n_tr2.html",
    "//components/test/data/autofill/heuristics/input/163_giftcard_hotels.com.html",
    "//components/test/data/autofill/heuristics/output/000_i18n_de.out",
    "//components/test/data/autofill/heuristics/output/001_i18n_de2.out",
    "//components/test/data/autofill/heuristics/output/002_i18n_en.out",
    "//components/test/data/autofill/heuristics/output/003_i18n_es.out",
    "//components/test/data/autofill/heuristics/output/004_i18n_fr.out",
    "//components/test/data/autofill/heuristics/output/005_i18n_it.out",
    "//components/test/data/autofill/heuristics/output/006_i18n_ja.out",
    "//components/test/data/autofill/heuristics/output/007_i18n_ko.out",
    "//components/test/data/autofill/heuristics/output/008_i18n_pt.out",
    "//components/test/data/autofill/heuristics/output/009_i18n_ru.out",
    "//components/test/data/autofill/heuristics/output/010_i18n_zh_cn.out",
    "//components/test/data/autofill/heuristics/output/011_i18n_zh_tw.out",
    "//components/test/data/autofill/heuristics/output/012_autocomplete_attribute_advanced.out",
    "//components/test/data/autofill/heuristics/output/013_autocomplete_attribute_basic.out",
    "//components/test/data/autofill/heuristics/output/014_autocomplete_attribute_invalid.out",
    "//components/test/data/autofill/heuristics/output/015_autocomplete_attribute_malicious.out",
    "//components/test/data/autofill/heuristics/output/016_misc_phones.out",
    "//components/test/data/autofill/heuristics/output/017_checkout_advanceautoparts.com.out",
    "//components/test/data/autofill/heuristics/output/018_checkout_ae.com.out",
    "//components/test/data/autofill/heuristics/output/019_checkout_bedbathandbeyond.com.out",
    "//components/test/data/autofill/heuristics/output/020_checkout_cafepress.com.out",
    "//components/test/data/autofill/heuristics/output/021_checkout_cduniverse.com.out",
    "//components/test/data/autofill/heuristics/output/022_checkout_crutchfield.com.out",
    "//components/test/data/autofill/heuristics/output/023_checkout_gamestop.com.out",
    "//components/test/data/autofill/heuristics/output/024_checkout_homedepot.com.out",
    "//components/test/data/autofill/heuristics/output/025_checkout_hsn.com.out",
    "//components/test/data/autofill/heuristics/output/026_checkout_ikea.com.out",
    "//components/test/data/autofill/heuristics/output/027_checkout_jcrew.com.out",
    "//components/test/data/autofill/heuristics/output/028_checkout_jr.com.out",
    "//components/test/data/autofill/heuristics/output/029_checkout_kohls.com.out",
    "//components/test/data/autofill/heuristics/output/030_checkout_lowes.com.out",
    "//components/test/data/autofill/heuristics/output/031_checkout_macys.com.out",
    "//components/test/data/autofill/heuristics/output/032_checkout_nordstrom.com.out",
    "//components/test/data/autofill/heuristics/output/033_checkout_officemax.com.out",
    "//components/test/data/autofill/heuristics/output/034_checkout_overstock.com.out",
    "//components/test/data/autofill/heuristics/output/035_checkout_petco.com.out",
    "//components/test/data/autofill/heuristics/output/036_checkout_petsmart.com.out",
    "//components/test/data/autofill/heuristics/output/037_checkout_qvc.com.out",
    "//components/test/data/autofill/heuristics/output/038_checkout_sears.com.out",
    "//components/test/data/autofill/heuristics/output/039_checkout_target.com.out",
    "//components/test/data/autofill/heuristics/output/040_checkout_urbanoutfitters.com.out",
    "//components/test/data/autofill/heuristics/output/041_checkout_vitacost.com.out",
    "//components/test/data/autofill/heuristics/output/042_checkout_williams-sonoma.com.out",
    "//components/test/data/autofill/heuristics/output/043_register_adobe.com.out",
    "//components/test/data/autofill/heuristics/output/044_register_amazon.com.out",
    "//components/test/data/autofill/heuristics/output/045_register_aol.com.out",
    "//components/test/data/autofill/heuristics/output/046_register_bestbuy.com.out",
    "//components/test/data/autofill/heuristics/output/047_register_continental.com.out",
    "//components/test/data/autofill/heuristics/output/048_register_deviantart.com.out",
    "//components/test/data/autofill/heuristics/output/049_register_ebay.com.out",
    "//components/test/data/autofill/heuristics/output/050_register_ecomm.dell.com.out",
    "//components/test/data/autofill/heuristics/output/051_register_epson.com.out",
    "//components/test/data/autofill/heuristics/output/052_register_google.com.out",
    "//components/test/data/autofill/heuristics/output/053_register_gymboree.com.out",
    "//components/test/data/autofill/heuristics/output/054_register_hotels.com.out",
    "//components/test/data/autofill/heuristics/output/055_register_imdb.com.out",
    "//components/test/data/autofill/heuristics/output/056_register_jbox.com.out",
    "//components/test/data/autofill/heuristics/output/057_register_live.com.out",
    "//components/test/data/autofill/heuristics/output/058_register_livejournal.com.out",
    "//components/test/data/autofill/heuristics/output/059_register_macys.com.out",
    "//components/test/data/autofill/heuristics/output/060_register_mcphee.com.out",
    "//components/test/data/autofill/heuristics/output/061_register_myspace.com.out",
    "//components/test/data/autofill/heuristics/output/062_register_newegg.com.out",
    "//components/test/data/autofill/heuristics/output/063_register_officedepot.com.out",
    "//components/test/data/autofill/heuristics/output/064_register_officemax.com.out",
    "//components/test/data/autofill/heuristics/output/065_register_pyramidcollection.com.out",
    "//components/test/data/autofill/heuristics/output/066_register_rediff.com.out",
    "//components/test/data/autofill/heuristics/output/067_register_rei.com.out",
    "//components/test/data/autofill/heuristics/output/068_register_rocketlawyer.com.out",
    "//components/test/data/autofill/heuristics/output/069_register_signup.clicksor.com.out",
    "//components/test/data/autofill/heuristics/output/070_register_signup.live.com.out",
    "//components/test/data/autofill/heuristics/output/071_register_sourceforge.net.out",
    "//components/test/data/autofill/heuristics/output/072_register_supershuttle.com.out",
    "//components/test/data/autofill/heuristics/output/073_register_target.com.out",
    "//components/test/data/autofill/heuristics/output/074_register_threadless.com.out",
    "//components/test/data/autofill/heuristics/output/075_register_trueblue.jetblue.com.out",
    "//components/test/data/autofill/heuristics/output/076_register_uhaul.com.out",
    "//components/test/data/autofill/heuristics/output/077_register_yahoo.com.out",
    "//components/test/data/autofill/heuristics/output/078_crbug_40687.out",
    "//components/test/data/autofill/heuristics/output/079_crbug_52198.out",
    "//components/test/data/autofill/heuristics/output/080_crbug_53075.out",
    "//components/test/data/autofill/heuristics/output/081_crbug_64569.out",
    "//components/test/data/autofill/heuristics/output/082_crbug_74918.out",
    "//components/test/data/autofill/heuristics/output/083_crbug_87517.out",
    "//components/test/data/autofill/heuristics/output/084_crbug_93595.out",
    "//components/test/data/autofill/heuristics/output/085_crbug_98152.out",
    "//components/test/data/autofill/heuristics/output/086_crbug_98269.out",
    "//components/test/data/autofill/heuristics/output/087_crbug_98286.out",
    "//components/test/data/autofill/heuristics/output/088_crbug_98338.out",
    "//components/test/data/autofill/heuristics/output/089_crbug_224601.out",
    "//components/test/data/autofill/heuristics/output/090_crbug_308839.out",
    "//components/test/data/autofill/heuristics/output/091_crbug_433703.out",
    "//components/test/data/autofill/heuristics/output/092_checkout_alaskaair.com.out",
    "//components/test/data/autofill/heuristics/output/093_checkout_m_walmart.com.out",
    "//components/test/data/autofill/heuristics/output/094_checkout_staples.com.out",
    "//components/test/data/autofill/heuristics/output/095_landsend.out",
    "//components/test/data/autofill/heuristics/output/096_llbean.out",
    "//components/test/data/autofill/heuristics/output/097_register_alaskaair.com.out",
    "//components/test/data/autofill/heuristics/output/098_register_epson.com.mx.out",
    "//components/test/data/autofill/heuristics/output/099_checkout_address2lines.out",
    "//components/test/data/autofill/heuristics/output/100_checkout_costco.com.out",
    "//components/test/data/autofill/heuristics/output/101_checkout_m_bestbuy.com.out",
    "//components/test/data/autofill/heuristics/output/102_checkout_m_macys.com.out",
    "//components/test/data/autofill/heuristics/output/103_checkout_peapod.com.out",
    "//components/test/data/autofill/heuristics/output/104_checkout_m_kohls.com.out",
    "//components/test/data/autofill/heuristics/output/105_checkout_m_lowes.com.out",
    "//components/test/data/autofill/heuristics/output/106_checkout_m_amazon.com.out",
    "//components/test/data/autofill/heuristics/output/107_checkout_m_apple.com.out",
    "//components/test/data/autofill/heuristics/output/108_checkout_m_gap.com.out",
    "//components/test/data/autofill/heuristics/output/109_checkout_m_nordstroms.com.out",
    "//components/test/data/autofill/heuristics/output/110_checkout_harryanddavid.com.out",
    "//components/test/data/autofill/heuristics/output/111_checkout_virgin_america.com.out",
    "//components/test/data/autofill/heuristics/output/112_checkout_m_llbean.com.out",
    "//components/test/data/autofill/heuristics/output/113_guest_checkout_peapod.com.out",
    "//components/test/data/autofill/heuristics/output/114_cc_checkout_wayfair.com.out",
    "//components/test/data/autofill/heuristics/output/115_checkout_walgreens.com.out",
    "//components/test/data/autofill/heuristics/output/116_cc_checkout_walgreens.com.out",
    "//components/test/data/autofill/heuristics/output/117_cc_checkout_macys.com.out",
    "//components/test/data/autofill/heuristics/output/118_checkout_cvs.com.out",
    "//components/test/data/autofill/heuristics/output/119_bug_465571.out",
    "//components/test/data/autofill/heuristics/output/120_bug_447332.out",
    "//components/test/data/autofill/heuristics/output/121_bug_454366.out",
    "//components/test/data/autofill/heuristics/output/122_bug_454366b.out",
    "//components/test/data/autofill/heuristics/output/123_bug_459132.out",
    "//components/test/data/autofill/heuristics/output/124_bug_460832.out",
    "//components/test/data/autofill/heuristics/output/125_bug_462080.out",
    "//components/test/data/autofill/heuristics/output/126_bug_463856.out",
    "//components/test/data/autofill/heuristics/output/127_bug_463986.out",
    "//components/test/data/autofill/heuristics/output/128_bug_464002.out",
    "//components/test/data/autofill/heuristics/output/129_bug_465053.out",
    "//components/test/data/autofill/heuristics/output/130_bug_465576.out",
    "//components/test/data/autofill/heuristics/output/131_bug_465587.out",
    "//components/test/data/autofill/heuristics/output/132_bug_469012.out",
    "//components/test/data/autofill/heuristics/output/133_bug_469472.out",
    "//components/test/data/autofill/heuristics/output/134_bug_471748.out",
    "//components/test/data/autofill/heuristics/output/135_bug_471831.out",
    "//components/test/data/autofill/heuristics/output/136_bug_497850.out",
    "//components/test/data/autofill/heuristics/output/137_bug_555010.out",
    "//components/test/data/autofill/heuristics/output/138_cc_checkout_united.com.out",
    "//components/test/data/autofill/heuristics/output/139_bug_594475.out",
    "//components/test/data/autofill/heuristics/output/140_checkout_nike.com.out",
    "//components/test/data/autofill/heuristics/output/141_checkout_cc_keurig.com.out",
    "//components/test/data/autofill/heuristics/output/142_cc_checkout_netaporter.com.out",
    "//components/test/data/autofill/heuristics/output/143_cc_checkout_efollet.com.out",
    "//components/test/data/autofill/heuristics/output/144_cc_checkout_m_jcp.com.out",
    "//components/test/data/autofill/heuristics/output/145_hal-india.com.out",
    "//components/test/data/autofill/heuristics/output/146_checkout_store.scholastic.com.out",
    "//components/test/data/autofill/heuristics/output/147_panera.custhelp.com_app_ask.out",
    "//components/test/data/autofill/heuristics/output/148_payment_dickblick.com.out",
    "//components/test/data/autofill/heuristics/output/149_checkout_qvc.com_non_hidden.out",
    "//components/test/data/autofill/heuristics/output/150_checkout_venus.com_search_field.out",
    "//components/test/data/autofill/heuristics/output/151_ticketmaster.com.out",
    "//components/test/data/autofill/heuristics/output/153_fmm-en_inm.gob.mx.out",
    "//components/test/data/autofill/heuristics/output/154_fmm-es_inm.gob.mx.out",
    "//components/test/data/autofill/heuristics/output/155_fmm-ja_inm.gob.mx.out",
    "//components/test/data/autofill/heuristics/output/156_buyAlbum_bandcamp.com_price.out",
    "//components/test/data/autofill/heuristics/output/157_bug_971402_opentable_checkout.out",
    "//components/test/data/autofill/heuristics/output/158_i18n_ml.out",
    "//components/test/data/autofill/heuristics/output/159_bug_966406_transavia.com.out",
    "//components/test/data/autofill/heuristics/output/160_credit_card_ignore_birthday_fields.out",
    "//components/test/data/autofill/heuristics/output/161_i18n_tr.out",
    "//components/test/data/autofill/heuristics/output/162_i18n_tr2.out",
    "//components/test/data/autofill/heuristics/output/163_giftcard_hotels.com.out",
  ]
  outputs = [ "{{bundle_resources_dir}}/" +
              "{{source_root_relative_dir}}/{{source_file_part}}" ]
}

source_set("eg_tests") {
  defines = [ "CHROME_EARL_GREY_1" ]
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [ "form_input_egtest.mm" ]
  deps = [
    ":autofill",
    "//base",
    "//base/test:test_support",
    "//components/autofill/ios/browser:browser",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/autofill:autofill_shared",
    "//ios/chrome/browser/ui/util",
    "//ios/chrome/test:eg_test_support",
    "//ios/chrome/test/app:test_support",
    "//ios/chrome/test/earl_grey:test_support",
    "//ios/testing/earl_grey:earl_grey_support",
    "//ios/third_party/earl_grey:earl_grey+link",
    "//ios/web:earl_grey_test_support",
    "//ios/web/public/deprecated",
    "//ios/web/public/test:element_selector",
    "//ios/web/public/test/http_server",
  ]
}

source_set("eg2_tests") {
  defines = [ "CHROME_EARL_GREY_2" ]
  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_strings_grit",
    "//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/deprecated",
    "//ios/web/public/test:element_selector",
    "//ios/web/public/test/http_server",
  ]
  libs = [ "UIKit.framework" ]
}