Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: testing/android/native_test_launcher.cc

Issue 10668047: Register JNI methods before running unittests on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disabling some tests which errorneously passed before Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/run_all_unittests.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/android/native_test_launcher.cc
diff --git a/testing/android/native_test_launcher.cc b/testing/android/native_test_launcher.cc
index b88cb30313e72fe06ac03268af267c14ed3bb383..b9e78d2564d41e138d609153aa8d0b8d0a8f716b 100644
--- a/testing/android/native_test_launcher.cc
+++ b/testing/android/native_test_launcher.cc
@@ -13,6 +13,7 @@
#include <signal.h>
#include <stdio.h>
+#include "base/android/base_jni_registrar.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/android/locale_utils.h"
@@ -175,9 +176,7 @@ static void RunTests(JNIEnv* env,
base::android::ScopedJavaLocalRef<jobject> scoped_context(
env, env->NewLocalRef(app_context));
base::android::InitApplicationContext(scoped_context);
-
- base::android::RegisterLocaleUtils(env);
- base::android::RegisterPathUtils(env);
+ base::android::RegisterJni(env);
FilePath files_dir(base::android::ConvertJavaStringToUTF8(env, jfiles_dir));
// A few options, such "--gtest_list_tests", will just use printf directly
« no previous file with comments | « net/base/run_all_unittests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698