Index: testing/android/native_test/native_test_launcher.cc |
diff --git a/testing/android/native_test/native_test_launcher.cc b/testing/android/native_test/native_test_launcher.cc |
index 2389c731a681c50c71f145803bbdf7d30c9d7f9f..a0c3ef1ae0f04fcadfa897660533d7158d6b1507 100644 |
--- a/testing/android/native_test/native_test_launcher.cc |
+++ b/testing/android/native_test/native_test_launcher.cc |
@@ -24,6 +24,7 @@ |
#include "base/files/file_util.h" |
#include "base/logging.h" |
#include "base/strings/stringprintf.h" |
+#include "base/test/android/test_support_jni_registrar.h" |
#include "base/test/test_support_android.h" |
#include "gtest/gtest.h" |
#include "jni/NativeTest_jni.h" |
@@ -128,9 +129,10 @@ static void RunTests(JNIEnv* env, |
} |
bool RegisterNativeTestJNI(JNIEnv* env) { |
- if (!base::android::RegisterJni(env)) { |
+ if (!base::android::RegisterJni(env)) |
+ return false; |
+ if (!base::android::RegisterTestSupportJni(env)) |
return false; |
- } |
return RegisterNativesImpl(env); |
} |