summaryrefslogtreecommitdiff
path: root/chromium/components/autofill_assistant/browser/BUILD.gn
blob: 45efb74221887dc91573ba4bed196978dc4c3950 (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
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/jumbo.gni")
import("//third_party/protobuf/proto_library.gni")

if (is_android) {
  import("//build/config/android/rules.gni")
}

proto_library("proto") {
  proto_in_dir = "//"
  sources = [
    "action_strategy.proto",
    "action_value.proto",
    "cud_condition.proto",
    "dom_action.proto",
    "generic_ui.proto",
    "model.proto",
    "service.proto",
    "view_layout.proto",
  ]
  link_deps = [
    "//components/autofill_assistant/browser/public:proto",
    "//components/autofill_assistant/content/common/proto:proto",
  ]
}

proto_library("test_proto") {
  proto_in_dir = "//"
  sources = [ "parse_jspb_test.proto" ]
}

jumbo_static_library("browser") {
  sources = [
    "actions/action.cc",
    "actions/action.h",
    "actions/action_delegate.h",
    "actions/action_delegate_util.cc",
    "actions/action_delegate_util.h",
    "actions/check_element_tag_action.cc",
    "actions/check_element_tag_action.h",
    "actions/check_option_element_action.cc",
    "actions/check_option_element_action.h",
    "actions/clear_persistent_ui_action.cc",
    "actions/clear_persistent_ui_action.h",
    "actions/collect_user_data_action.cc",
    "actions/collect_user_data_action.h",
    "actions/configure_bottom_sheet_action.cc",
    "actions/configure_bottom_sheet_action.h",
    "actions/configure_ui_state_action.cc",
    "actions/configure_ui_state_action.h",
    "actions/dispatch_js_event_action.cc",
    "actions/dispatch_js_event_action.h",
    "actions/execute_js_action.cc",
    "actions/execute_js_action.h",
    "actions/expect_navigation_action.cc",
    "actions/expect_navigation_action.h",
    "actions/external_action.cc",
    "actions/external_action.h",
    "actions/fallback_handler/required_field.cc",
    "actions/fallback_handler/required_field.h",
    "actions/fallback_handler/required_fields_fallback_handler.cc",
    "actions/fallback_handler/required_fields_fallback_handler.h",
    "actions/generate_password_for_form_field_action.cc",
    "actions/generate_password_for_form_field_action.h",
    "actions/get_element_status_action.cc",
    "actions/get_element_status_action.h",
    "actions/js_flow_action.cc",
    "actions/js_flow_action.h",
    "actions/navigate_action.cc",
    "actions/navigate_action.h",
    "actions/parse_single_tag_xml_action.cc",
    "actions/parse_single_tag_xml_action.h",
    "actions/perform_on_single_element_action.cc",
    "actions/perform_on_single_element_action.h",
    "actions/popup_message_action.cc",
    "actions/popup_message_action.h",
    "actions/presave_generated_password_action.cc",
    "actions/presave_generated_password_action.h",
    "actions/prompt_action.cc",
    "actions/prompt_action.h",
    "actions/prompt_qr_code_scan_action.cc",
    "actions/prompt_qr_code_scan_action.h",
    "actions/register_password_reset_request_action.cc",
    "actions/register_password_reset_request_action.h",
    "actions/release_elements_action.cc",
    "actions/release_elements_action.h",
    "actions/report_progress_action.cc",
    "actions/report_progress_action.h",
    "actions/reset_pending_credentials_action.cc",
    "actions/reset_pending_credentials_action.h",
    "actions/save_generated_password_action.cc",
    "actions/save_generated_password_action.h",
    "actions/save_submitted_password_action.cc",
    "actions/save_submitted_password_action.h",
    "actions/select_option_action.cc",
    "actions/select_option_action.h",
    "actions/send_keystroke_events_action.cc",
    "actions/send_keystroke_events_action.h",
    "actions/set_attribute_action.cc",
    "actions/set_attribute_action.h",
    "actions/set_persistent_ui_action.cc",
    "actions/set_persistent_ui_action.h",
    "actions/set_touchable_area_action.cc",
    "actions/set_touchable_area_action.h",
    "actions/show_cast_action.cc",
    "actions/show_cast_action.h",
    "actions/show_details_action.cc",
    "actions/show_details_action.h",
    "actions/show_form_action.cc",
    "actions/show_form_action.h",
    "actions/show_generic_ui_action.cc",
    "actions/show_generic_ui_action.h",
    "actions/show_info_box_action.cc",
    "actions/show_info_box_action.h",
    "actions/show_progress_bar_action.cc",
    "actions/show_progress_bar_action.h",
    "actions/stop_action.cc",
    "actions/stop_action.h",
    "actions/stopwatch.cc",
    "actions/stopwatch.h",
    "actions/tell_action.cc",
    "actions/tell_action.h",
    "actions/unsupported_action.cc",
    "actions/unsupported_action.h",
    "actions/update_client_settings_action.cc",
    "actions/update_client_settings_action.h",
    "actions/upload_dom_action.cc",
    "actions/upload_dom_action.h",
    "actions/use_address_action.cc",
    "actions/use_address_action.h",
    "actions/use_credit_card_action.cc",
    "actions/use_credit_card_action.h",
    "actions/wait_for_document_action.cc",
    "actions/wait_for_document_action.h",
    "actions/wait_for_dom_action.cc",
    "actions/wait_for_dom_action.h",
    "actions/wait_for_navigation_action.cc",
    "actions/wait_for_navigation_action.h",
    "assistant_field_trial_util.cc",
    "assistant_field_trial_util.h",
    "autofill_assistant_factory.cc",
    "autofill_assistant_impl.cc",
    "autofill_assistant_impl.h",
    "autofill_assistant_onboarding_fetcher.cc",
    "autofill_assistant_onboarding_fetcher.h",
    "autofill_assistant_tts_controller.cc",
    "autofill_assistant_tts_controller.h",
    "basic_interactions.cc",
    "basic_interactions.h",
    "batch_element_checker.cc",
    "batch_element_checker.h",
    "bottom_sheet_state.cc",
    "bottom_sheet_state.h",
    "chip.cc",
    "chip.h",
    "client.h",
    "client_context.cc",
    "client_context.h",
    "client_settings.cc",
    "client_settings.h",
    "client_status.cc",
    "client_status.h",
    "common_dependencies.cc",
    "common_dependencies.h",
    "controller.cc",
    "controller.h",
    "controller_observer.cc",
    "controller_observer.h",
    "dependencies_util.cc",
    "dependencies_util.h",
    "desktop/starter_delegate_desktop.cc",
    "desktop/starter_delegate_desktop.h",
    "details.cc",
    "details.h",
    "device_context.cc",
    "device_context.h",
    "direct_action.cc",
    "direct_action.h",
    "display_strings_util.cc",
    "display_strings_util.h",
    "element_area.cc",
    "element_area.h",
    "empty_controller_observer.h",
    "event_handler.cc",
    "event_handler.h",
    "execution_delegate.h",
    "features.cc",
    "features.h",
    "field_formatter.cc",
    "field_formatter.h",
    "full_card_requester.cc",
    "full_card_requester.h",
    "generic_ui_java_generated_enums.h",
    "generic_ui_replace_placeholders.cc",
    "generic_ui_replace_placeholders.h",
    "headless/client_headless.cc",
    "headless/client_headless.h",
    "headless/headless_script_controller_impl.cc",
    "headless/headless_script_controller_impl.h",
    "headless/headless_ui_controller.cc",
    "headless/headless_ui_controller.h",
    "info_box.cc",
    "info_box.h",
    "intent_strings.cc",
    "intent_strings.h",
    "js_flow_devtools_wrapper.cc",
    "js_flow_devtools_wrapper.h",
    "js_flow_executor.h",
    "js_flow_executor_impl.cc",
    "js_flow_executor_impl.h",
    "js_flow_util.cc",
    "js_flow_util.h",
    "metrics.cc",
    "metrics.h",
    "onboarding_result.h",
    "overlay_state.h",
    "parse_jspb.cc",
    "parse_jspb.h",
    "platform_dependencies.cc",
    "platform_dependencies.h",
    "preference_manager.cc",
    "preference_manager.h",
    "protocol_utils.cc",
    "protocol_utils.h",
    "radio_button_controller.cc",
    "radio_button_controller.h",
    "retry_timer.cc",
    "retry_timer.h",
    "script.cc",
    "script.h",
    "script_executor.cc",
    "script_executor.h",
    "script_executor_delegate.h",
    "script_executor_ui_delegate.h",
    "script_parameters.cc",
    "script_parameters.h",
    "script_precondition.cc",
    "script_precondition.h",
    "script_tracker.cc",
    "script_tracker.h",
    "selector.cc",
    "selector.h",
    "service/access_token_fetcher.h",
    "service/api_key_fetcher.cc",
    "service/api_key_fetcher.h",
    "service/cup.cc",
    "service/cup.h",
    "service/cup_factory.cc",
    "service/cup_factory.h",
    "service/cup_impl.cc",
    "service/cup_impl.h",
    "service/local_script_store.cc",
    "service/local_script_store.h",
    "service/no_round_trip_service.cc",
    "service/no_round_trip_service.h",
    "service/rpc_type.h",
    "service/server_url_fetcher.cc",
    "service/server_url_fetcher.h",
    "service/service.h",
    "service/service_impl.cc",
    "service/service_impl.h",
    "service/service_request_sender.cc",
    "service/service_request_sender.h",
    "service/service_request_sender_impl.cc",
    "service/service_request_sender_impl.h",
    "service/service_request_sender_local_impl.cc",
    "service/service_request_sender_local_impl.h",
    "service/simple_url_loader_factory.cc",
    "service/simple_url_loader_factory.h",
    "starter.cc",
    "starter.h",
    "starter_heuristic.cc",
    "starter_heuristic.h",
    "starter_heuristic_configs/finch_configs.cc",
    "starter_heuristic_configs/finch_configs.h",
    "starter_heuristic_configs/finch_starter_heuristic_config.cc",
    "starter_heuristic_configs/finch_starter_heuristic_config.h",
    "starter_heuristic_configs/launched_configs.cc",
    "starter_heuristic_configs/launched_configs.h",
    "starter_heuristic_configs/launched_starter_heuristic_config.cc",
    "starter_heuristic_configs/launched_starter_heuristic_config.h",
    "starter_heuristic_configs/starter_heuristic_config.h",
    "starter_platform_delegate.h",
    "startup_util.cc",
    "startup_util.h",
    "state.h",
    "string_conversions_util.cc",
    "string_conversions_util.h",
    "suppress_keyboard_raii.cc",
    "suppress_keyboard_raii.h",
    "switches.cc",
    "switches.h",
    "tab_helper.cc",
    "tab_helper.h",
    "top_padding.cc",
    "top_padding.h",
    "trigger_context.cc",
    "trigger_context.h",
    "trigger_scripts/dynamic_trigger_conditions.cc",
    "trigger_scripts/dynamic_trigger_conditions.h",
    "trigger_scripts/static_trigger_conditions.cc",
    "trigger_scripts/static_trigger_conditions.h",
    "trigger_scripts/trigger_script.cc",
    "trigger_scripts/trigger_script.h",
    "trigger_scripts/trigger_script_coordinator.cc",
    "trigger_scripts/trigger_script_coordinator.h",
    "tts_button_state.h",
    "ui_controller.cc",
    "ui_controller.h",
    "ui_controller_observer.cc",
    "ui_controller_observer.h",
    "ui_delegate.h",
    "url_utils.cc",
    "url_utils.h",
    "user_action.cc",
    "user_action.h",
    "user_data.cc",
    "user_data.h",
    "user_data_util.cc",
    "user_data_util.h",
    "user_model.cc",
    "user_model.h",
    "value_util.cc",
    "value_util.h",
    "viewport_mode.h",
    "wait_for_document_operation.cc",
    "wait_for_document_operation.h",
    "wait_for_dom_observer.h",
    "wait_for_dom_operation.cc",
    "wait_for_dom_operation.h",
    "web/base_element_finder.cc",
    "web/base_element_finder.h",
    "web/check_on_top_worker.cc",
    "web/check_on_top_worker.h",
    "web/click_or_tap_worker.cc",
    "web/click_or_tap_worker.h",
    "web/css_element_finder.cc",
    "web/css_element_finder.h",
    "web/element.cc",
    "web/element.h",
    "web/element_action_util.cc",
    "web/element_action_util.h",
    "web/element_finder.cc",
    "web/element_finder.h",
    "web/element_finder_result.cc",
    "web/element_finder_result.h",
    "web/element_finder_result_type.h",
    "web/element_position_getter.cc",
    "web/element_position_getter.h",
    "web/element_rect_getter.cc",
    "web/element_rect_getter.h",
    "web/element_store.cc",
    "web/element_store.h",
    "web/js_filter_builder.cc",
    "web/js_filter_builder.h",
    "web/js_snippets.cc",
    "web/js_snippets.h",
    "web/keyboard_input_data.cc",
    "web/keyboard_input_data.h",
    "web/selector_observer.cc",
    "web/selector_observer.h",
    "web/selector_observer_script.h",
    "web/semantic_element_finder.cc",
    "web/semantic_element_finder.h",
    "web/send_keyboard_input_worker.cc",
    "web/send_keyboard_input_worker.h",
    "web/web_controller.cc",
    "web/web_controller.h",
    "web/web_controller_util.cc",
    "web/web_controller_util.h",
    "web/web_controller_worker.h",
  ]

  deps = [
    ":proto",
    "//base",
    "//build:chromeos_buildflags",
    "//components/autofill/content/browser",
    "//components/autofill/core/browser",
    "//components/autofill/core/common",
    "//components/autofill_assistant/browser/devtools",
    "//components/autofill_assistant/browser/public:password_change",
    "//components/autofill_assistant/browser/public:public",
    "//components/autofill_assistant/content/browser",
    "//components/autofill_assistant/content/common",
    "//components/autofill_assistant/content/common:mojo_interfaces",
    "//components/autofill_assistant/core/public:public",
    "//components/client_update_protocol",
    "//components/consent_auditor",
    "//components/google/core/common:common",
    "//components/keyed_service/core",
    "//components/password_manager/content/browser:browser",
    "//components/password_manager/core/browser:browser",
    "//components/signin/public/identity_manager",
    "//components/strings:components_strings_grit",
    "//components/sync/protocol",
    "//components/ukm/content:content",
    "//components/url_matcher",
    "//components/variations/service",
    "//components/version_info",
    "//content/public/browser",
    "//google_apis",
    "//net",
    "//services/metrics/public/cpp:metrics_cpp",
    "//services/metrics/public/cpp:ukm_builders",
    "//third_party/re2",
  ]
}

static_library("test_support") {
  testonly = true
  sources = [
    "actions/mock_action_delegate.cc",
    "actions/mock_action_delegate.h",
    "actions/wait_for_dom_test_base.cc",
    "actions/wait_for_dom_test_base.h",
    "fake_common_dependencies.cc",
    "fake_common_dependencies.h",
    "fake_platform_dependencies.cc",
    "fake_platform_dependencies.h",
    "fake_script_executor_delegate.cc",
    "fake_script_executor_delegate.h",
    "fake_script_executor_ui_delegate.cc",
    "fake_script_executor_ui_delegate.h",
    "fake_starter_platform_delegate.cc",
    "fake_starter_platform_delegate.h",
    "mock_assistant_field_trial_util.cc",
    "mock_assistant_field_trial_util.h",
    "mock_autofill_assistant_tts_controller.cc",
    "mock_autofill_assistant_tts_controller.h",
    "mock_client.cc",
    "mock_client.h",
    "mock_common_dependencies.cc",
    "mock_common_dependencies.h",
    "mock_controller_observer.cc",
    "mock_controller_observer.h",
    "mock_execution_delegate.cc",
    "mock_execution_delegate.h",
    "mock_personal_data_manager.cc",
    "mock_personal_data_manager.h",
    "mock_script_executor_delegate.cc",
    "mock_script_executor_delegate.h",
    "mock_ui_controller_observer.cc",
    "mock_ui_controller_observer.h",
    "mock_user_model.cc",
    "mock_user_model.h",
    "mock_user_model_observer.cc",
    "mock_user_model_observer.h",
    "service/mock_service.cc",
    "service/mock_service.h",
    "web/fake_element_store.cc",
    "web/fake_element_store.h",
    "web/mock_autofill_assistant_agent.cc",
    "web/mock_autofill_assistant_agent.h",
    "web/mock_web_controller.cc",
    "web/mock_web_controller.h",
  ]

  public_deps = [
    ":browser",
    ":proto",
    "devtools:devtools",
    "devtools:gen_devtools_client_api",
    "public",
    "public:password_change",
    "//base",
    "//base/test:test_support",
    "//components/autofill/core/browser:test_support",
    "//components/autofill_assistant/content/common",
    "//components/autofill_assistant/content/common:mojo_interfaces",
    "//components/autofill_assistant/core/public:public",
    "//components/consent_auditor",
    "//components/consent_auditor:test_support",
    "//components/password_manager/core/browser:browser",
    "//components/signin/public/identity_manager:test_support",
    "//components/version_info",
    "//content/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}

static_library("browser_test_support") {
  testonly = true
  sources = [
    "base_browsertest.cc",
    "base_browsertest.h",
  ]

  deps = [
    "//content/test:browsertest_support",
    "//net:test_support",
    "//testing/gtest",
    "//third_party/blink/public/common:headers",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "actions/action_delegate_util_unittest.cc",
    "actions/action_test_utils.cc",
    "actions/action_test_utils.h",
    "actions/action_unittest.cc",
    "actions/check_element_tag_action_unittest.cc",
    "actions/check_option_element_action_unittest.cc",
    "actions/clear_persistent_ui_action_unittest.cc",
    "actions/collect_user_data_action_unittest.cc",
    "actions/configure_bottom_sheet_action_unittest.cc",
    "actions/configure_ui_state_action_unittest.cc",
    "actions/dispatch_js_event_action_unittest.cc",
    "actions/execute_js_action_unittest.cc",
    "actions/expect_navigation_action_unittest.cc",
    "actions/external_action_unittest.cc",
    "actions/fallback_handler/required_field_unittest.cc",
    "actions/fallback_handler/required_fields_fallback_handler_unittest.cc",
    "actions/generate_password_for_form_field_action_unittest.cc",
    "actions/get_element_status_action_unittest.cc",
    "actions/js_flow_action_unittest.cc",
    "actions/navigate_action_unittest.cc",
    "actions/parse_single_tag_xml_action_unittest.cc",
    "actions/perform_on_single_element_action_unittest.cc",
    "actions/popup_message_action_unittest.cc",
    "actions/presave_generated_password_action_unittest.cc",
    "actions/prompt_action_unittest.cc",
    "actions/prompt_qr_code_scan_action_unittest.cc",
    "actions/register_password_reset_request_action_unittest.cc",
    "actions/release_elements_action_unittest.cc",
    "actions/report_progress_action_unittest.cc",
    "actions/reset_pending_credentials_action_unittest.cc",
    "actions/save_generated_password_action_unittest.cc",
    "actions/save_submitted_password_action_unittest.cc",
    "actions/select_option_action_unittest.cc",
    "actions/send_keystroke_events_action_unittest.cc",
    "actions/set_attribute_action_unittest.cc",
    "actions/set_persistent_ui_action_unittest.cc",
    "actions/set_touchable_area_action_unittest.cc",
    "actions/show_cast_action_unittest.cc",
    "actions/show_details_action_unittest.cc",
    "actions/show_form_action_unittest.cc",
    "actions/show_generic_ui_action_unittest.cc",
    "actions/show_info_box_action_unittest.cc",
    "actions/show_progress_bar_action_unittest.cc",
    "actions/stop_action_unittest.cc",
    "actions/stopwatch_unittest.cc",
    "actions/tell_action_unittest.cc",
    "actions/unsupported_action_unittest.cc",
    "actions/update_client_settings_action_unittest.cc",
    "actions/upload_dom_action_unittest.cc",
    "actions/use_address_action_unittest.cc",
    "actions/use_credit_card_action_unittest.cc",
    "actions/wait_for_document_action_unittest.cc",
    "actions/wait_for_dom_action_unittest.cc",
    "actions/wait_for_navigation_action_unittest.cc",
    "autofill_assistant_impl_unittest.cc",
    "autofill_assistant_onboarding_fetcher_unittest.cc",
    "autofill_assistant_tts_controller_unittest.cc",
    "basic_interactions_unittest.cc",
    "batch_element_checker_unittest.cc",
    "client_context_unittest.cc",
    "client_settings_unittest.cc",
    "controller_unittest.cc",
    "details_unittest.cc",
    "display_strings_util_unittest.cc",
    "element_area_unittest.cc",
    "event_handler_unittest.cc",
    "field_formatter_unittest.cc",
    "full_card_requester_unittest.cc",
    "generic_ui_replace_placeholders_unittest.cc",
    "headless/headless_script_controller_impl_unittest.cc",
    "js_flow_util_unittest.cc",
    "mock_client_context.cc",
    "mock_client_context.h",
    "parse_jspb_unittest.cc",
    "preference_manager_unittest.cc",
    "protocol_utils_unittest.cc",
    "radio_button_controller_unittest.cc",
    "retry_timer_unittest.cc",
    "script_executor_unittest.cc",
    "script_parameters_unittest.cc",
    "script_precondition_unittest.cc",
    "script_tracker_unittest.cc",
    "selector_unittest.cc",
    "service/api_key_fetcher_unittest.cc",
    "service/cup_factory_unittest.cc",
    "service/cup_impl_unittest.cc",
    "service/cup_unittest.cc",
    "service/local_script_store_unittest.cc",
    "service/mock_access_token_fetcher.cc",
    "service/mock_access_token_fetcher.h",
    "service/mock_cup.cc",
    "service/mock_cup.h",
    "service/mock_service_request_sender.cc",
    "service/mock_service_request_sender.h",
    "service/mock_simple_url_loader_factory.cc",
    "service/mock_simple_url_loader_factory.h",
    "service/mock_url_loader.cc",
    "service/mock_url_loader.h",
    "service/no_round_trip_service_unittest.cc",
    "service/server_url_fetcher_unittest.cc",
    "service/service_impl_unittest.cc",
    "service/service_request_sender_impl_unittest.cc",
    "service/service_request_sender_local_impl_unittest.cc",
    "starter_heuristic_configs/finch_configs_unittest.cc",
    "starter_heuristic_configs/finch_starter_heuristic_config_unittest.cc",
    "starter_heuristic_configs/launched_configs_unittest.cc",
    "starter_heuristic_configs/launched_starter_heuristic_config_unittest.cc",
    "starter_heuristic_configs/starter_heuristic_configs_test_util.h",
    "starter_heuristic_unittest.cc",
    "starter_unittest.cc",
    "startup_util_unittest.cc",
    "string_conversions_util_unittest.cc",
    "test_util.cc",
    "test_util.h",
    "trigger_context_unittest.cc",
    "trigger_scripts/dynamic_trigger_conditions_unittest.cc",
    "trigger_scripts/mock_dynamic_trigger_conditions.cc",
    "trigger_scripts/mock_dynamic_trigger_conditions.h",
    "trigger_scripts/mock_static_trigger_conditions.cc",
    "trigger_scripts/mock_static_trigger_conditions.h",
    "trigger_scripts/mock_trigger_script_ui_delegate.cc",
    "trigger_scripts/mock_trigger_script_ui_delegate.h",
    "trigger_scripts/static_trigger_conditions_unittest.cc",
    "trigger_scripts/trigger_script_coordinator_unittest.cc",
    "trigger_scripts/trigger_script_unittest.cc",
    "ui_controller_unittest.cc",
    "ukm_test_util.cc",
    "ukm_test_util.h",
    "url_utils_unittest.cc",
    "user_data_util_unittest.cc",
    "user_model_unittest.cc",
    "value_util_unittest.cc",
    "wait_for_document_operation_unittest.cc",
    "web/element_action_util_unittest.cc",
    "web/element_store_unittest.cc",
    "web/send_keyboard_input_worker_unittest.cc",
  ]

  deps = [
    ":browser",
    ":proto",
    ":test_proto",
    ":test_support",
    "//base",
    "//base/test:test_support",
    "//components/autofill/core/browser:test_support",
    "//components/autofill_assistant/browser/public:password_change",
    "//components/autofill_assistant/browser/public:proto",
    "//components/autofill_assistant/browser/public:public",
    "//components/autofill_assistant/browser/public:unit_test_support",
    "//components/consent_auditor:test_support",
    "//components/password_manager/core/browser:test_support",
    "//components/password_manager/core/browser/leak_detection:test_support",
    "//components/password_manager/core/common",
    "//components/prefs:test_support",
    "//components/signin/public/identity_manager:test_support",
    "//components/strings:components_strings_grit",
    "//components/ukm:test_support",
    "//components/ukm/content:content",
    "//components/url_matcher",
    "//components/variations/service",
    "//components/version_info",
    "//content/test:test_support",
    "//services/network:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/re2",
  ]
}

if (is_android) {
  proto_java_library("proto_java") {
    proto_path = "//"
    sources = [
      "action_strategy.proto",
      "action_value.proto",
      "cud_condition.proto",
      "dom_action.proto",
      "generic_ui.proto",
      "model.proto",
      "service.proto",
      "view_layout.proto",
    ]
    deps = [
      "//components/autofill_assistant/browser/public:proto_java",
      "//components/autofill_assistant/content/common/proto:proto_java",
    ]
  }

  java_cpp_enum("autofill_assistant_enums_java") {
    sources = [
      "generic_ui_java_generated_enums.h",
      "metrics.h",
      "onboarding_result.h",
      "overlay_state.h",
      "trigger_scripts/trigger_script_action.h",
      "tts_button_state.h",
      "user_data.h",
      "viewport_mode.h",
    ]
  }

  java_cpp_strings("autofill_assistant_intent_strings_java") {
    sources = [ "intent_strings.cc" ]

    template = "java_templates/IntentStrings.java.tmpl"
  }

  static_library("android_test_support") {
    testonly = true
    sources = [
      "java_tts_controller.cc",
      "java_tts_controller.h",
      "service/java_service.cc",
      "service/java_service.h",
      "service/java_service_request_sender.cc",
      "service/java_service_request_sender.h",
      "service/java_test_endpoint_service.cc",
      "service/java_test_endpoint_service.h",
    ]

    deps = [
      ":browser",
      ":proto",
      "//base",
      "//chrome/android/features/autofill_assistant:test_support_jni_headers",
      "//content/public/browser",
      "//net",
      "//url:url",
    ]
  }
}