Index: components/BUILD.gn |
diff --git a/components/BUILD.gn b/components/BUILD.gn |
index 93aa8249b13221f689d796b8f45235dc13b0ecdc..36e09f07afc2ba9b1e5e57ceaa6ad2489f9288ce 100644 |
--- a/components/BUILD.gn |
+++ b/components/BUILD.gn |
@@ -310,6 +310,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", |
@@ -345,7 +356,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_util", |
+ ] |
+ |
+ use_launcher = false |
} |
if (is_linux) { |