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
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
android_webview / test / BUILD.gn [blame]
# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//android_webview/system_webview_apk_tmpl.gni")
import("//android_webview/test/shared.gni")
import("//android_webview/variables.gni")
import("//build/config/android/rules.gni")
import("//build/config/python.gni")
import("//device/vr/buildflags/buildflags.gni")
import("//testing/test.gni")
import("//third_party/jni_zero/jni_zero.gni")
import("//tools/grit/repack.gni")
# Mark all targets as test only.
testonly = true
group("test") {
deps = [
":android_webview_junit_tests",
":android_webview_unittests",
":webview_instrumentation_test_apk",
]
}
python_library("webview_cts_tests") {
pydeps_file = "//android_webview/tools/run_cts.pydeps"
deps = [ "//android_webview:system_webview_apk" ]
data_deps = [
"//build/android:test_runner_py",
"//testing/buildbot/filters:webview_cts_tests_filters",
]
data = [ "//android_webview/tools/cts_config/" ]
}
python_library("webview_trichrome_cts_tests") {
pydeps_file = "//android_webview/tools/run_cts.pydeps"
deps = [ "//android_webview:trichrome_webview_apk" ]
data_deps = [ "//build/android:test_runner_py" ]
data = [ "//android_webview/tools/cts_config/" ]
}
if (android_64bit_target_cpu) {
python_library("webview_64_cts_tests") {
pydeps_file = "//android_webview/tools/run_cts.pydeps"
deps = [ "//android_webview:system_webview_64_apk" ]
data_deps = [
"//build/android:test_runner_py",
"//testing/buildbot/filters:webview_cts_tests_filters",
]
data = [ "//android_webview/tools/cts_config/" ]
}
python_library("webview_trichrome_64_cts_hostside_tests") {
pydeps_file = "//android_webview/tools/run_cts.pydeps"
deps = [ "//android_webview:trichrome_webview_64_apk" ]
data_deps = [ "//build/android:test_runner_py" ]
data = [
"//android_webview/tools/cts_config/",
"//third_party/chromium-variations",
]
}
python_library("webview_trichrome_64_cts_tests") {
pydeps_file = "//android_webview/tools/run_cts.pydeps"
deps = [ "//android_webview:trichrome_webview_64_apk" ]
data_deps = [ "//build/android:test_runner_py" ]
data = [
"//android_webview/tools/cts_config/",
"//third_party/chromium-variations",
]
}
if (!skip_secondary_abi_for_cq) {
python_library("webview_trichrome_64_32_cts_tests") {
pydeps_file = "//android_webview/tools/run_cts.pydeps"
deps = [ "//android_webview:trichrome_webview_64_32_apk" ]
data_deps = [ "//build/android:test_runner_py" ]
data = [
"//android_webview/tools/cts_config/",
"//third_party/chromium-variations",
]
}
}
}
script_test("system_webview_crx_smoke_tests") {
script =
"//android_webview/test/components/run_webview_component_smoketest.py"
args = [ "--webview-package-name=$system_webview_package_name" ]
data = [ "//android_webview/test/components/crx_smoke_tests.py" ]
data_deps = [
"//android_webview:system_webview_apk",
"//android_webview/tools/system_webview_shell:system_webview_shell_apk",
]
}
# Options shared by all script test targets that call `run_wpt_tests.py`.
_common_web_test_options = [
"--no-show-results",
"--zero-tests-executed-ok",
"--build-directory",
"@WrappedPath(.)",
]
if (is_debug) {
_common_web_test_options += [ "--debug" ]
} else {
_common_web_test_options += [ "--release" ]
}
script_test("system_webview_wpt") {
script = "//third_party/blink/tools/run_wpt_tests.py"
args = _common_web_test_options + [
"--product",
"android_webview",
"--test-type",
"testharness",
"reftest",
"crashtest",
"print-reftest",
"--zero-tests-executed-ok",
"--webview-provider",
"@WrappedPath(apks/SystemWebView.apk)",
"--browser-apk",
"@WrappedPath(apks/SystemWebViewShell.apk)",
]
data = [
"//third_party/blink/web_tests/platform/webview/",
"//third_party/blink/web_tests/MobileTestExpectations",
]
data_deps = [
"//android_webview:system_webview_apk",
"//android_webview/tools/system_webview_shell:system_webview_shell_layout_test_apk",
"//chrome/test/chromedriver:chromedriver_server($host_toolchain)",
"//third_party/blink/tools:wpt_tests_android_isolate",
]
}
script_test("trichrome_webview_wpt") {
script = "//third_party/blink/tools/run_wpt_tests.py"
args = _common_web_test_options + [
"--product",
"android_webview",
"--test-type",
"testharness",
"reftest",
"crashtest",
"print-reftest",
"--zero-tests-executed-ok",
"--webview-provider",
"@WrappedPath(apks/TrichromeWebView.apk)",
"--browser-apk",
"@WrappedPath(apks/SystemWebViewShell.apk)",
"--additional-apk",
"@WrappedPath(apks/TrichromeLibrary.apk)",
]
data = [
"//third_party/blink/web_tests/platform/webview/",
"//third_party/blink/web_tests/MobileTestExpectations",
]
data_deps = [
"//android_webview:trichrome_webview_apk",
"//android_webview/tools/system_webview_shell:system_webview_shell_layout_test_apk",
"//chrome/test/chromedriver:chromedriver_server($host_toolchain)",
"//third_party/blink/tools:wpt_tests_android_isolate",
]
}
if (android_64bit_target_cpu) {
script_test("trichrome_webview_wpt_64") {
script = "//third_party/blink/tools/run_wpt_tests.py"
args = _common_web_test_options + [
"--product",
"android_webview",
"--test-type",
"testharness",
"reftest",
"crashtest",
"print-reftest",
"--zero-tests-executed-ok",
"--webview-provider",
"@WrappedPath(apks/TrichromeWebView64.apk)",
"--browser-apk",
"@WrappedPath(apks/SystemWebViewShell.apk)",
"--additional-apk",
"@WrappedPath(apks/TrichromeLibrary64.apk)",
]
data = [
"//third_party/blink/web_tests/platform/webview/",
"//third_party/blink/web_tests/MobileTestExpectations",
]
data_deps = [
"//android_webview:trichrome_webview_64_apk",
"//android_webview/tools/system_webview_shell:system_webview_shell_layout_test_apk",
"//chrome/test/chromedriver:chromedriver_server($host_toolchain)",
"//third_party/blink/tools:wpt_tests_android_isolate",
]
}
}
base_webview_instrumentation_apk("webview_instrumentation_apk") {
deps = [
"//android_webview:platform_service_bridge_upstream_implementation_java",
# Note: you probably don't want to add any more deps here. This is the
# upstream instantiation of 'base_webview_instrumentation_apk', however
# there is also another instance of 'base_webview_instrumentation_apk'
# defined in downstream code.
# * If you need to add deps to the AW test runner, then add the dep to
# "base_webview_instrumentation_apk" in //android_webview/test/shared.gni.
# * If you need to add deps for the actual javatest code, then add the dep
# to "webview_instrumentation_test_apk" in the current file.
# * You should only add a dep here if the testrunner depends on the target
# AND you want to provide a different implementation for the downstream
# vs. upstream instantiations of 'base_webview_instrumentation_apk'.
# PlatformServiceBridge is the typical example for when you want this.
]
apk_name = "WebViewInstrumentation"
}
android_resources("webview_instrumentation_apk_resources") {
sources = [
"../javatests/res/raw/add_two_numbers.wasm",
"shell/res/layout/testshell_activity.xml",
"shell/res/raw/resource_file.html",
"shell/res/raw/resource_icon.png",
"shell/res/values/config.xml",
"shell/res/values/strings.xml",
"shell/res/xml/provider_paths.xml",
]
}
android_assets("webview_instrumentation_apk_assets") {
disable_compression = true
deps = [
"//android_webview:pak_file_assets",
"//gin:v8_snapshot_assets",
"//third_party/icu:icu_assets",
]
sources = [
"../javatests/assets/empty_file.js",
"../javatests/assets/hello.html",
"../javatests/assets/print_hello.js",
"../javatests/assets/wrong_js.txt",
"shell/assets/asset_file.html",
"shell/assets/asset_icon.png",
"shell/assets/autofill.html",
"shell/assets/cookie_test.html",
"shell/assets/cors.html",
"shell/assets/full_screen_video.js",
"shell/assets/full_screen_video_inside_div_test.html",
"shell/assets/full_screen_video_test.html",
"shell/assets/full_screen_video_test_not_preloaded.html",
"shell/assets/key-system-test.html",
"shell/assets/mod.m.js",
"shell/assets/page_with_module.html",
"shell/assets/star.svg",
"shell/assets/star.svgz",
"shell/assets/video.webm",
"shell/assets/visual_state_during_fullscreen_test.html",
"shell/assets/visual_state_on_page_commit_visible_test.html",
"shell/assets/visual_state_waits_for_js_detached_test.html",
"shell/assets/visual_state_waits_for_js_test.html",
]
}
generate_jni("draw_fn_impl_jni_headers") {
sources =
[ "shell/src/org/chromium/android_webview/shell/ContextManager.java" ]
}
android_library("draw_fn_impl_java") {
sources =
[ "shell/src/org/chromium/android_webview/shell/ContextManager.java" ]
srcjar_deps = [ ":draw_fn_impl_jni_headers" ]
deps = [ "//third_party/jni_zero:jni_zero_java" ]
}
shared_library_with_jni("libstandalonelibwebviewchromium") {
testonly = true
sources = [
"shell/src/draw_fn/allocator.cc",
"shell/src/draw_fn/allocator.h",
"shell/src/draw_fn/context_manager.cc",
"shell/src/draw_fn/context_manager.h",
"shell/src/draw_fn/overlays_manager.cc",
"shell/src/draw_fn/overlays_manager.h",
]
ldflags = [ "-Wl,-shared,-Bsymbolic" ]
deps = [
":draw_fn_impl_jni_headers",
":webview_instrumentation_test_native_jni_impl",
"//android_webview/browser/gfx",
"//android_webview/lib",
"//android_webview/lib:webview_entry_point",
"//android_webview/nonembedded",
"//android_webview/public",
"//base",
"//components/android_autofill/browser/test_support:native",
"//components/content_capture/android/test_support",
"//components/heap_profiling/multi_process:test_support",
"//content/public/test/android:content_native_test_support",
"//gpu/vulkan",
"//gpu/vulkan/init",
"//gpu/vulkan/init:skia",
"//ui/gl",
]
libs = [ "android" ]
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ]
java_targets = [ ":webview_instrumentation_apk" ]
}
generate_jni("webview_instrumentation_test_jni") {
testonly = true
sources = [ "../javatests/src/org/chromium/android_webview/test/component_updater/EmbeddedComponentLoaderTest.java" ]
}
copy("copy_webview_js_test_script_to_blink") {
sources = [ "data/resources/js-test.js" ]
outputs =
[ "$root_build_dir/third_party/blink/web_tests/resources/js-test.js" ]
}
base_webview_instrumentation_test_apk("webview_instrumentation_test_apk") {
apk_name = "WebViewInstrumentationTest"
apk_under_test = ":webview_instrumentation_apk"
deps = [
"//android_webview:common_aidl_java",
"//android_webview:common_origin_trials_java",
"//android_webview:common_variations_java",
"//android_webview:crash_client_java",
"//android_webview/nonembedded:crash_java",
"//android_webview/nonembedded:devui_java",
"//android_webview/nonembedded:services_java",
"//android_webview/nonembedded:util_java",
"//android_webview/proto:aw_variations_seed_proto_java",
"//android_webview/proto:metrics_bridge_records_proto_java",
"//android_webview/test:copy_webview_js_test_script_to_blink",
"//android_webview/test:crash_test_utils_java",
"//android_webview/test:webview_instrumentation_test_mock_services_java",
"//android_webview/test:webview_instrumentation_test_utils_java",
"//android_webview/test/embedded_test_server:aw_net_java_test_support",
"//base:base_java_test_support_uncommon",
"//base/version_info/android:version_constants_java",
"//components/android_autofill/browser:java",
"//components/android_autofill/browser/test_support:java",
"//components/autofill/android:autofill_java",
"//components/autofill/core/common/mojom:mojo_types_java",
"//components/background_task_scheduler:background_task_scheduler_task_ids_java",
"//components/component_updater/android:component_provider_service_aidl_java",
"//components/component_updater/android:embedded_component_loader_java",
"//components/content_capture/android:java",
"//components/content_capture/android/test_support:java",
"//components/crash/android:java",
"//components/embedder_support/android:content_view_java",
"//components/embedder_support/android:context_menu_java",
"//components/embedder_support/android:util_java",
"//components/embedder_support/android:web_contents_delegate_java",
"//components/embedder_support/android/metrics:java",
"//components/heap_profiling/multi_process:heap_profiling_java_test_support",
"//components/metrics:metrics_java",
"//components/minidump_uploader:minidump_uploader_java",
"//components/minidump_uploader:minidump_uploader_java_test_support",
"//components/policy/android:policy_java",
"//components/policy/android:policy_java_test_support",
"//components/safe_browsing/android:safe_browsing_java",
"//components/sensitive_content:sensitive_content_features_java",
"//components/variations:variations_java",
"//components/variations/android:variations_java",
"//components/variations/proto:proto_java",
"//components/viz:viz_java",
"//content/public/android:content_java",
"//content/public/common:common_java",
"//content/public/test/android:content_java_test_support",
"//mojo/public/java:bindings_java",
"//net/android:net_java",
"//net/android:net_java_test_support",
"//services/device/public/java:geolocation_java",
"//services/device/public/java:geolocation_java_test_support",
"//services/network/public:features_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/android_deps:espresso_java",
"//third_party/android_deps:guava_android_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/androidx:androidx_activity_activity_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_fragment_fragment_java",
"//third_party/androidx:androidx_privacysandbox_ads_ads_adservices_java",
"//third_party/androidx:androidx_privacysandbox_ads_ads_adservices_java_java",
"//third_party/androidx:androidx_test_core_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/androidx:androidx_test_rules_java",
"//third_party/androidx_javascriptengine:javascriptengine_common_java",
"//third_party/androidx_javascriptengine:javascriptengine_java",
"//third_party/blink/public/common:common_java",
"//third_party/blink/public/mojom:mojom_platform_java",
"//third_party/blink/public/mojom:web_feature_mojo_bindings_java",
"//third_party/hamcrest:hamcrest_core_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/jni_zero:jni_zero_java",
"//third_party/metrics_proto:metrics_proto_java",
"//ui/accessibility:ax_base_java",
"//ui/android:ui_android_features_java",
"//ui/android:ui_java",
"//ui/android:ui_java_test_support",
"//ui/base/mojom:ui_base_types_java",
]
sources = [
"../javatests/src/org/chromium/android_webview/test/AcceptLanguageTest.java",
"../javatests/src/org/chromium/android_webview/test/AndroidAutofillSafeModeTest.java",
"../javatests/src/org/chromium/android_webview/test/AndroidProtocolHandlerTest.java",
"../javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java",
"../javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java",
"../javatests/src/org/chromium/android_webview/test/ApiImplementationLoggerTest.java",
"../javatests/src/org/chromium/android_webview/test/ArchiveTest.java",
"../javatests/src/org/chromium/android_webview/test/AttributionReportingTest.java",
"../javatests/src/org/chromium/android_webview/test/AwAutofillTest.java",
"../javatests/src/org/chromium/android_webview/test/AwBackForwardCacheTest.java",
"../javatests/src/org/chromium/android_webview/test/AwBrowserContextFormDataTest.java",
"../javatests/src/org/chromium/android_webview/test/AwClipboardTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentCaptureTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientAutoLoginTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientCallbackHelperTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientFaviconTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientFullScreenTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientGetDefaultVideoPosterTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientOnFormResubmissionTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientOnRenderProcessGoneTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientOnRendererUnresponsiveTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientOnScaleChangedTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientOnUnhandledKeyEventTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsClientVisitedHistoryTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsContainerViewTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsLifecycleNotifierTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsOriginMatcherTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsRenderTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsStaticsTest.java",
"../javatests/src/org/chromium/android_webview/test/AwContentsTest.java",
"../javatests/src/org/chromium/android_webview/test/AwCrashyClassUtilsTest.java",
"../javatests/src/org/chromium/android_webview/test/AwDarkModeTest.java",
"../javatests/src/org/chromium/android_webview/test/AwDisplayCutoutTest.java",
"../javatests/src/org/chromium/android_webview/test/AwFileChooserTest.java",
"../javatests/src/org/chromium/android_webview/test/AwImeTest.java",
"../javatests/src/org/chromium/android_webview/test/AwJavaBridgeTest.java",
"../javatests/src/org/chromium/android_webview/test/AwKeyboardShortcutsTest.java",
"../javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java",
"../javatests/src/org/chromium/android_webview/test/AwMediaIntegrityApiStatusConfigTest.java",
"../javatests/src/org/chromium/android_webview/test/AwMediaIntegrityApiTest.java",
"../javatests/src/org/chromium/android_webview/test/AwMetricsIntegrationTest.java",
"../javatests/src/org/chromium/android_webview/test/AwMetricsLogUploaderTest.java",
"../javatests/src/org/chromium/android_webview/test/AwNetworkConfigurationTest.java",
"../javatests/src/org/chromium/android_webview/test/AwPacProcessorTest.java",
"../javatests/src/org/chromium/android_webview/test/AwPageLoadMetricsTest.java",
"../javatests/src/org/chromium/android_webview/test/AwParameterizedTest.java",
"../javatests/src/org/chromium/android_webview/test/AwPermissionManagerTest.java",
"../javatests/src/org/chromium/android_webview/test/AwPermissionQueryApiTest.java",
"../javatests/src/org/chromium/android_webview/test/AwPersistentOriginTrialTest.java",
"../javatests/src/org/chromium/android_webview/test/AwPrerenderTest.java",
"../javatests/src/org/chromium/android_webview/test/AwProxyControllerTest.java",
"../javatests/src/org/chromium/android_webview/test/AwQuotaManagerBridgeTest.java",
"../javatests/src/org/chromium/android_webview/test/AwSecondBrowserProcessTest.java",
"../javatests/src/org/chromium/android_webview/test/AwServiceWorkerClientTest.java",
"../javatests/src/org/chromium/android_webview/test/AwServiceWorkerSettingsTest.java",
"../javatests/src/org/chromium/android_webview/test/AwSettingsTest.java",
"../javatests/src/org/chromium/android_webview/test/AwStrictModeTest.java",
"../javatests/src/org/chromium/android_webview/test/AwSupervisedUserTest.java",
"../javatests/src/org/chromium/android_webview/test/AwUncaughtExceptionTest.java",
"../javatests/src/org/chromium/android_webview/test/AwVariationsSeedFetcherTest.java",
"../javatests/src/org/chromium/android_webview/test/AwWebContentsObserverTest.java",
"../javatests/src/org/chromium/android_webview/test/AwZoomTest.java",
"../javatests/src/org/chromium/android_webview/test/CleanupReferenceTest.java",
"../javatests/src/org/chromium/android_webview/test/ClearHistoryTest.java",
"../javatests/src/org/chromium/android_webview/test/ClientAddMessageToConsoleTest.java",
"../javatests/src/org/chromium/android_webview/test/ClientHintsTest.java",
"../javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java",
"../javatests/src/org/chromium/android_webview/test/ClientOnPageStartedTest.java",
"../javatests/src/org/chromium/android_webview/test/ClientOnReceivedError2Test.java",
"../javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java",
"../javatests/src/org/chromium/android_webview/test/ClientOnReceivedHttpErrorTest.java",
"../javatests/src/org/chromium/android_webview/test/ConsoleMessagesForBlockedLoadsTest.java",
"../javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java",
"../javatests/src/org/chromium/android_webview/test/ContextMenuTest.java",
"../javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java",
"../javatests/src/org/chromium/android_webview/test/CookieManagerTest.java",
"../javatests/src/org/chromium/android_webview/test/DarkModeTest.java",
"../javatests/src/org/chromium/android_webview/test/DisableOriginTrialsSafeModeTest.java",
"../javatests/src/org/chromium/android_webview/test/FencedFrameTest.java",
"../javatests/src/org/chromium/android_webview/test/FullScreenVideoTestAwContentsClient.java",
"../javatests/src/org/chromium/android_webview/test/GeolocationTest.java",
"../javatests/src/org/chromium/android_webview/test/GetTitleTest.java",
"../javatests/src/org/chromium/android_webview/test/HeapProfilingTest.java",
"../javatests/src/org/chromium/android_webview/test/HttpAuthDatabaseTest.java",
"../javatests/src/org/chromium/android_webview/test/JsJavaInteractionTest.java",
"../javatests/src/org/chromium/android_webview/test/KeySystemTest.java",
"../javatests/src/org/chromium/android_webview/test/LoadDataWithBaseUrlTest.java",
"../javatests/src/org/chromium/android_webview/test/LoadUrlTest.java",
"../javatests/src/org/chromium/android_webview/test/ManifestMetadataUtilTest.java",
"../javatests/src/org/chromium/android_webview/test/MediaAccessPermissionRequestTest.java",
"../javatests/src/org/chromium/android_webview/test/MemoryMetricsLoggerTest.java",
"../javatests/src/org/chromium/android_webview/test/MetricsFilteringDecoratorTest.java",
"../javatests/src/org/chromium/android_webview/test/MetricsTestPlatformServiceBridge.java",
"../javatests/src/org/chromium/android_webview/test/MultiProfileTest.java",
"../javatests/src/org/chromium/android_webview/test/MultiProfileTestRule.java",
"../javatests/src/org/chromium/android_webview/test/NavigationHistoryTest.java",
"../javatests/src/org/chromium/android_webview/test/NavigationListenerTest.java",
"../javatests/src/org/chromium/android_webview/test/OnDiskFileTest.java",
"../javatests/src/org/chromium/android_webview/test/PolicyUrlFilteringTest.java",
"../javatests/src/org/chromium/android_webview/test/PopupWindowTest.java",
"../javatests/src/org/chromium/android_webview/test/PostMessageTest.java",
"../javatests/src/org/chromium/android_webview/test/RenderProcessGoneHelper.java",
"../javatests/src/org/chromium/android_webview/test/RendererProcessMetricsProviderTest.java",
"../javatests/src/org/chromium/android_webview/test/SafeBrowsingSafeModeTest.java",
"../javatests/src/org/chromium/android_webview/test/SafeBrowsingTest.java",
"../javatests/src/org/chromium/android_webview/test/SafeModeTest.java",
"../javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java",
"../javatests/src/org/chromium/android_webview/test/SslPreferencesTest.java",
"../javatests/src/org/chromium/android_webview/test/StandaloneAwQuotaManagerBridgeTest.java",
"../javatests/src/org/chromium/android_webview/test/TestAwContents.java",
"../javatests/src/org/chromium/android_webview/test/TestAwServiceWorkerClient.java",
"../javatests/src/org/chromium/android_webview/test/TestPageLoadedNotifier.java",
"../javatests/src/org/chromium/android_webview/test/TestWebMessageListener.java",
"../javatests/src/org/chromium/android_webview/test/TrafficStatsTest.java",
"../javatests/src/org/chromium/android_webview/test/UserAgentTest.java",
"../javatests/src/org/chromium/android_webview/test/VariationsHeadersTest.java",
"../javatests/src/org/chromium/android_webview/test/VariationsSeedHolderTest.java",
"../javatests/src/org/chromium/android_webview/test/VariationsSeedLoaderTest.java",
"../javatests/src/org/chromium/android_webview/test/VariationsTest.java",
"../javatests/src/org/chromium/android_webview/test/VisualStateTest.java",
"../javatests/src/org/chromium/android_webview/test/WebExposedTest.java",
"../javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java",
"../javatests/src/org/chromium/android_webview/test/WebViewAsynchronousFindApisTest.java",
"../javatests/src/org/chromium/android_webview/test/WebViewFindApisTestRule.java",
"../javatests/src/org/chromium/android_webview/test/WebViewModalDialogOverrideTest.java",
"../javatests/src/org/chromium/android_webview/test/XRWOriginTrialTest.java",
"../javatests/src/org/chromium/android_webview/test/common/services/ServiceConnectionDelayRecorderTest.java",
"../javatests/src/org/chromium/android_webview/test/common/variations/VariationsUtilsTest.java",
"../javatests/src/org/chromium/android_webview/test/component_updater/EmbeddedComponentLoaderTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/AwNonembeddedUmaRecorderTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/ComponentsListFragmentTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/ComponentsListFragmentUpdateButtonTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/CrashesListFragmentTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/DeveloperUiTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/DeveloperUiTestUtils.java",
"../javatests/src/org/chromium/android_webview/test/devui/FlagsFragmentTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/HomeFragmentTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/NetLogsFragmentTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/SafeModeFragmentTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/util/ComponentsInfoLoaderTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/util/CrashBugUrlFactoryTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/util/UnuploadedFilesStateLoaderTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/util/UploadedCrashesInfoLoaderTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/util/WebViewCrashInfoCollectorTest.java",
"../javatests/src/org/chromium/android_webview/test/devui/util/WebViewCrashLogParserTest.java",
"../javatests/src/org/chromium/android_webview/test/sensitive_content/AwSensitiveContentTest.java",
"../javatests/src/org/chromium/android_webview/test/services/AwComponentUpdateServiceTest.java",
"../javatests/src/org/chromium/android_webview/test/services/AwNetLogServiceTest.java",
"../javatests/src/org/chromium/android_webview/test/services/ComponentsProviderServiceTest.java",
"../javatests/src/org/chromium/android_webview/test/services/CrashLoggingUtilsTest.java",
"../javatests/src/org/chromium/android_webview/test/services/CrashReceiverServiceTest.java",
"../javatests/src/org/chromium/android_webview/test/services/JsSandboxFledgeTest.java",
"../javatests/src/org/chromium/android_webview/test/services/JsSandboxServiceTest.java",
"../javatests/src/org/chromium/android_webview/test/services/MetricsBridgeServiceTest.java",
"../javatests/src/org/chromium/android_webview/test/services/MetricsBridgeServiceUnitTest.java",
"../javatests/src/org/chromium/android_webview/test/services/MetricsUploadServiceTest.java",
"../javatests/src/org/chromium/android_webview/test/services/MinidumpUploadJobTest.java",
"../javatests/src/org/chromium/android_webview/test/services/ServiceConnectionHelper.java",
"../javatests/src/org/chromium/android_webview/test/services/VariationsSeedServerTest.java",
"../javatests/src/org/chromium/android_webview/test/services/VisualStateCallbackTest.java",
]
data = [
"data/",
"//android_webview/test/data/web_tests/",
"//third_party/blink/web_tests/resources/global-interface-listing.js",
"//third_party/blink/web_tests/webexposed/global-interface-listing.html",
"//third_party/blink/web_tests/webexposed/global-interface-listing-expected.txt",
"//third_party/chromium-variations/",
"$root_build_dir/third_party/blink/web_tests/resources/js-test.js",
]
data_deps =
[ "//testing/buildbot/filters:webview_instrumentation_test_apk_filters" ]
if (enable_chrome_android_internal) {
data_deps +=
[ "//clank/build/bot/filters:webview_instrumentation_test_apk_filters" ]
}
srcjar_deps = [ "//android_webview/test:webview_instrumentation_test_jni" ]
}
android_library("base_webview_instrumentation_test_java") {
sources = [
"//android_webview/javatests/src/org/chromium/android_webview/test/AwActivityTestRule.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/DisableHardwareAcceleration.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/AwQuotaManagerBridgeTestUtil.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/CookieUtils.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/GraphicsTestUtils.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/ImagePageGenerator.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/JavascriptEventObserver.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/VideoSurfaceViewUtils.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/VideoTestUtil.java",
"//android_webview/javatests/src/org/chromium/android_webview/test/util/VideoTestWebServer.java",
]
deps = [
"//android_webview:browser_java",
"//android_webview/test:base_webview_instrumentation_java",
"//base:base_java",
"//base:base_java_test_support",
"//components/embedder_support/android:util_java",
"//content/public/android:content_java",
"//content/public/test/android:content_java_test_support",
"//net/android:net_java_test_support",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/hamcrest:hamcrest_core_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/junit:junit",
"//ui/android:ui_java",
]
}
android_library("base_webview_instrumentation_java") {
sources = [
"//android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java",
"//android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java",
"//android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellResourceProvider.java",
"//android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellSwitches.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/AwJUnit4ClassRunner.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/AwJUnit4ClassRunnerWithParameters.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/AwSettingsMutation.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/OnlyRunIn.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/SecondBrowserProcess.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/SkipMutations.java",
"//android_webview/test/shell/src/org/chromium/android_webview/test/TestContentProvider.java",
]
deps = [
":draw_fn_impl_java",
":webview_instrumentation_apk_resources",
"//android_webview:android_webview_java",
"//android_webview:android_webview_product_config_java",
"//base:base_java",
"//base:base_java_test_support",
"//components/embedder_support/android:util_java",
"//components/policy/android:policy_java_test_support",
"//content/public/android:content_java",
"//content/public/test/android:content_java_test_support",
"//net/android:net_java_test_support",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/junit:junit",
"//ui/android:ui_java_test_support",
"//ui/android:ui_no_recycler_view_java",
"//url:url_java",
]
resources_package = "org.chromium.android_webview.shell"
}
android_library("webview_instrumentation_test_mock_services_java") {
testonly = true
sources = [
"../javatests/src/org/chromium/android_webview/test/component_updater/MockComponentsProviderService.java",
"../javatests/src/org/chromium/android_webview/test/services/MockAwComponentUpdateService.java",
"../javatests/src/org/chromium/android_webview/test/services/MockMetricsBridgeService.java",
"../javatests/src/org/chromium/android_webview/test/services/MockVariationsSeedServer.java",
]
deps = [
"//android_webview:common_aidl_java",
"//android_webview/nonembedded:services_java",
"//base:base_java",
"//base:base_java_test_support",
"//components/component_updater/android:component_provider_service_aidl_java",
"//third_party/junit",
]
}
android_library("webview_instrumentation_test_utils_java") {
testonly = true
sources = [
"../javatests/src/org/chromium/android_webview/test/util/DisableOriginTrialsSafeModeTestUtils.java",
"../javatests/src/org/chromium/android_webview/test/util/EmbeddedComponentLoaderFactory.java",
"../javatests/src/org/chromium/android_webview/test/util/ManifestMetadataMockApplicationContext.java",
"../javatests/src/org/chromium/android_webview/test/util/RendererProcessMetricsProviderUtils.java",
"../javatests/src/org/chromium/android_webview/test/util/TrafficStatsTestUtil.java",
"../javatests/src/org/chromium/android_webview/test/util/VariationsTestUtils.java",
"shell/src/org/chromium/android_webview/test/util/MemoryMetricsLoggerUtils.java",
]
srcjar_deps = [ ":webview_instrumentation_test_native_jni" ]
deps = [
"//android_webview:common_variations_java",
"//base:base_java_test_support",
"//build/android:build_java",
"//components/component_updater/android:embedded_component_loader_java",
"//components/variations/android:variations_java",
"//third_party/blink/public/common",
"//third_party/jni_zero:jni_zero_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
]
}
generate_jni("webview_instrumentation_test_native_jni") {
testonly = true
sources = [
"../javatests/src/org/chromium/android_webview/test/util/DisableOriginTrialsSafeModeTestUtils.java",
"../javatests/src/org/chromium/android_webview/test/util/EmbeddedComponentLoaderFactory.java",
"../javatests/src/org/chromium/android_webview/test/util/RendererProcessMetricsProviderUtils.java",
"../javatests/src/org/chromium/android_webview/test/util/TrafficStatsTestUtil.java",
"../javatests/src/org/chromium/android_webview/test/util/VariationsTestUtils.java",
"shell/src/org/chromium/android_webview/test/util/MemoryMetricsLoggerUtils.java",
]
}
source_set("webview_instrumentation_test_native_jni_impl") {
sources = [
"browser/disable_origin_trials_safemode_test_utils.cc",
"browser/embedded_component_loader_test_helper.cc",
"browser/renderer_process_metrics_provider_utils.cc",
"browser/trafficstats_test_util.cc",
"browser/variations_test_utils.cc",
"shell/memory_metrics_logger_utils.cc",
]
deps = [
":webview_instrumentation_test_jni",
":webview_instrumentation_test_native_jni",
"//android_webview/browser",
"//android_webview/browser/metrics",
"//android_webview/js_sandbox/service:js_sandbox",
"//base",
"//base/test:test_support",
"//components/component_updater/android:embedded_component_loader",
"//components/component_updater/android:embedded_component_loader_jni_headers",
"//components/embedder_support/android/metrics",
"//components/embedder_support/origin_trials",
"//content/public/common",
"//net:test_support",
"//third_party/protobuf:protobuf_lite",
]
}
repack("android_webview_unittests_pak") {
sources = [ "$root_gen_dir/components/metrics/metrics_server_urls.pak" ]
deps = [ "//components/metrics:server_urls_grd" ]
output = "$root_out_dir/android_webview_unittests_resources.pak"
}
test("android_webview_unittests") {
deps = [
":android_webview_unittests_assets",
":android_webview_unittests_java",
":android_webview_unittests_jni",
"//android_webview/browser",
"//android_webview/browser/gfx",
"//android_webview/browser/lifecycle",
"//android_webview/browser/metrics",
"//android_webview/common",
"//android_webview/nonembedded",
"//base/test:test_support",
"//components/autofill/core/browser",
"//components/component_updater",
"//components/component_updater/android:embedded_component_loader",
"//components/embedder_support:browser_util",
"//components/embedder_support/android:util",
"//components/embedder_support/android/metrics:metrics",
"//components/flags_ui:flags_ui",
"//components/ip_protection:unit_tests",
"//components/ip_protection/android:blind_sign_message_android_impl",
"//components/ip_protection/common:ip_protection_data_types",
"//components/ip_protection/common:ip_protection_proxy_config_direct_fetcher",
"//components/ip_protection/common:mock_blind_sign_auth",
"//components/metrics",
"//components/metrics:component_metrics",
"//components/metrics:content",
"//components/optimization_guide/core:bloomfilter",
"//components/policy/core/browser:test_support",
"//components/prefs:prefs",
"//components/prefs:test_support",
"//components/safe_browsing/content/browser/web_ui",
"//components/safe_browsing/core/browser",
"//components/safe_browsing/core/common",
"//components/tracing:background_tracing_utils",
"//components/update_client",
"//components/viz/service:service",
"//content:content",
"//content/test:test_support",
"//gin:v8_snapshot_assets",
"//mojo/core/embedder",
"//net:net",
"//net:test_support",
"//net/third_party/quiche:blind_sign_auth",
"//services/cert_verifier/public/mojom",
"//services/network:test_support",
"//testing/gtest",
"//third_party/anonymous_tokens:anonymous_tokens_cc_proto",
"//ui/base",
"//ui/base:ui_base_jni_headers",
"//ui/gl",
"//ui/gl:test_support",
]
data_deps = [ ":android_webview_unittests_pak" ]
data = [ "data/" ]
sources = [
"../browser/aw_app_defined_websites_unittest.cc",
"../browser/aw_asset_domain_list_include_handler_unittest.cc",
"../browser/aw_browser_context_unittest.cc",
"../browser/aw_client_hints_controller_delegate_unittest.cc",
"../browser/aw_contents_client_bridge_unittest.cc",
"../browser/aw_crash_keys_unittest.cc",
"../browser/aw_feature_entries_unittest.cc",
"../browser/aw_field_trials_unittest.cc",
"../browser/aw_form_database_service_unittest.cc",
"../browser/aw_media_url_interceptor_unittest.cc",
"../browser/aw_pac_processor_unittest.cc",
"../browser/aw_permission_manager_unittest.cc",
"../browser/aw_user_agent_metadata_unittest.cc",
"../browser/enterprise_authentication_app_link_policy_handler_unittest.cc",
"../browser/file_system_access/aw_file_system_access_permission_context_unittest.cc",
"../browser/gfx/begin_frame_source_webview_unittest.cc",
"../browser/gfx/browser_view_renderer_unittest.cc",
"../browser/gfx/test/fake_window.cc",
"../browser/gfx/test/fake_window.h",
"../browser/gfx/test/invalidate_test.cc",
"../browser/gfx/test/rendering_test.cc",
"../browser/gfx/test/rendering_test.h",
"../browser/ip_protection/aw_ip_protection_core_host_unittest.cc",
"../browser/lifecycle/aw_contents_lifecycle_notifier_unittest.cc",
"../browser/metrics/android_metrics_provider_unittest.cc",
"../browser/metrics/aw_component_metrics_provider_delegate_unittests.cc",
"../browser/metrics/aw_metrics_filtering_status_metrics_provider_unittests.cc",
"../browser/metrics/aw_metrics_service_client_sample_rate_unittest.cc",
"../browser/metrics/aw_metrics_service_client_unittest.cc",
"../browser/metrics/aw_server_side_allowlist_metrics_provider_unittests.cc",
"../browser/metrics/visibility_metrics_logger_unittest.cc",
"../browser/permission/media_access_permission_request_unittest.cc",
"../browser/permission/permission_request_handler_unittest.cc",
"../browser/renderer_host/auto_login_parser_unittest.cc",
"../browser/safe_browsing/aw_ping_manager_factory_unittest.cc",
"../browser/safe_browsing/aw_safe_browsing_allowlist_manager_unittest.cc",
"../browser/state_serializer_unittest.cc",
"../browser/tracing/aw_background_tracing_metrics_provider_unittest.cc",
"../browser/tracing/aw_tracing_delegate_unittest.cc",
"../lib/webview_tests.cc",
"../nonembedded/component_updater/aw_component_installer_policy_shim_unittest.cc",
"../nonembedded/component_updater/aw_component_installer_policy_unittest.cc",
"../nonembedded/component_updater/aw_component_update_service_test.cc",
"../nonembedded/component_updater/aw_component_updater_configurator_unittest.cc",
]
}
android_assets("android_webview_unittests_assets") {
sources = [ "unittest/assets/asset_file.ogg" ]
}
android_library("android_webview_unittests_java") {
testonly = true
deps = [
"//android_webview:android_webview_java",
"//content/public/test/android:content_java_test_support",
"//third_party/jni_zero:jni_zero_java",
]
sources = [ "../unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java" ]
srcjar_deps = [ ":android_webview_unittests_jni" ]
}
generate_jni("android_webview_unittests_jni") {
testonly = true
sources = [ "../unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java" ]
}
android_library("crash_test_utils_java") {
testonly = true
sources = [ "../nonembedded/java/src/org/chromium/android_webview/nonembedded/crash/CrashInfoEqualityMatcher.java" ]
deps = [
"//android_webview/nonembedded:crash_java",
"//third_party/hamcrest:hamcrest_java",
]
}
# robolectric tests
robolectric_binary("android_webview_junit_tests") {
sources = [
"../junit/src/org/chromium/android_webview/robolectric/AwDisplayCutoutControllerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/AwDisplayModeControllerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/AwHttpAuthHandlerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/AwLayoutSizerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/AwScrollOffsetManagerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/AwWebContentsMetricsRecorderTest.java",
"../junit/src/org/chromium/android_webview/robolectric/FindAddressTest.java",
"../junit/src/org/chromium/android_webview/robolectric/RectUtilsTest.java",
"../junit/src/org/chromium/android_webview/robolectric/SupportLibTest.java",
"../junit/src/org/chromium/android_webview/robolectric/WebAddressParserTest.java",
"../junit/src/org/chromium/android_webview/robolectric/common/FlagOverrideHelperTest.java",
"../junit/src/org/chromium/android_webview/robolectric/common/services/ServiceNamesTest.java",
"../junit/src/org/chromium/android_webview/robolectric/metrics/AwMetricsUtilsTest.java",
"../junit/src/org/chromium/android_webview/robolectric/metrics/AwNonembeddedUmaReplayerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/metrics/AwOriginVisitLoggerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/metrics/AwSiteVisitLoggerTest.java",
"../junit/src/org/chromium/android_webview/robolectric/metrics/TrackExitReasonsTest.java",
"../junit/src/org/chromium/android_webview/robolectric/nonembedded/AwComponentUpdateServiceSafeModeTest.java",
"../junit/src/org/chromium/android_webview/robolectric/nonembedded/NetworkFetcherTaskTest.java",
"../junit/src/org/chromium/android_webview/robolectric/nonembedded/crash/CrashInfoTest.java",
]
deps = [
":crash_test_utils_java",
"//android_webview:android_webview_java",
"//android_webview/nonembedded:crash_java",
"//android_webview/nonembedded:services_java",
"//android_webview/proto:metrics_bridge_records_proto_java",
"//android_webview/support_library/boundary_interfaces:boundary_interface_java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_java_test_support_uncommon",
"//base:base_junit_test_support",
"//components/component_updater/android:embedded_component_loader_java",
"//components/content_relationship_verification:java",
"//components/content_relationship_verification/android:java",
"//components/content_relationship_verification/android:junit_test_support",
"//components/crash/android:java",
"//components/embedder_support/android:util_java",
"//content/public/android:content_full_java",
"//content/public/test/android:content_java_test_support",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/androidx:androidx_test_core_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/blink/public/mojom:mojom_platform_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/jni_zero:jni_zero_java",
"//url:gurl_java",
]
package_name = "org.chromium.android_webview.robolectric"
}