Index: components/BUILD.gn |
diff --git a/components/BUILD.gn b/components/BUILD.gn |
index 95761c19b55c248fb561256c7434602f785e51b7..01503dc10791a29d1dbe5421351c7a69a687f8f0 100644 |
--- a/components/BUILD.gn |
+++ b/components/BUILD.gn |
@@ -334,6 +334,17 @@ repack("components_tests_pak") { |
] |
} |
+if (is_android) { |
+ import("//build/config/android/rules.gni") |
+ |
+ generate_jni("components_browsertests_jni_headers") { |
+ jni_package = "components_browsertests/shell" |
+ sources = [ |
+ "test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsActivity.java", |
+ ] |
+ } |
+} |
+ |
test("components_browsertests") { |
sources = [ |
"autofill/content/browser/risk/fingerprint_browsertest.cc", |
@@ -369,7 +380,18 @@ test("components_browsertests") { |
data_deps = [ ":components_tests_pak" ] |
if (is_android) { |
+ sources += [ |
+ "test/android/browsertests_apk/components_browser_tests_android.cc", |
+ "test/android/browsertests_apk/components_browser_tests_android.h", |
+ "test/android/browsertests_apk/components_browser_tests_jni_onload.cc", |
+ ] |
sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] |
+ deps += [ |
+ ":components_browsertests_jni_headers", |
+ "//testing/android/native_test:native_test_util", |
+ ] |
+ |
+ use_launcher = false |
} |
if (is_linux) { |