Chromium Code Reviews| Index: content/test/run_all_unittests.cc |
| diff --git a/content/test/run_all_unittests.cc b/content/test/run_all_unittests.cc |
| index 695cebe9dc7a151f17abec3839408d9a680cbdb5..005a8d454f6f398d3ab50c91f43e44cbd6a3a323 100644 |
| --- a/content/test/run_all_unittests.cc |
| +++ b/content/test/run_all_unittests.cc |
| @@ -5,7 +5,19 @@ |
| #include "content/test/content_test_suite.h" |
| #include "content/public/test/unittest_test_suite.h" |
| +#if defined(OS_ANDROID) |
| +#include "base/android/jni_android.h" |
| +#include "content/app/android/content_jni_registrar.h" |
| +#endif |
| + |
| int main(int argc, char** argv) { |
| + |
| +#if defined(OS_ANDROID) |
| + // Register JNI bindings for android. |
| + JNIEnv* env = base::android::AttachCurrentThread(); |
|
Jay Civelli
2012/06/26 20:17:11
Nit: do you need a local var?
nilesh
2012/06/26 20:33:54
Removed
|
| + content::android::RegisterJni(env); |
| +#endif |
| + |
| return content::UnitTestTestSuite( |
| new content::ContentTestSuite(argc, argv)).Run(); |
| } |