Index: content/test/run_all_unittests.cc |
diff --git a/content/test/run_all_unittests.cc b/content/test/run_all_unittests.cc |
index b6170ade9ea6dea9ed5410075507dd92de42b237..ed61a5c0b1c29b6b48bb5ffe93166d1f8c5d08d2 100644 |
--- a/content/test/run_all_unittests.cc |
+++ b/content/test/run_all_unittests.cc |
@@ -8,7 +8,16 @@ |
#include "content/public/test/unittest_test_suite.h" |
#include "content/test/content_test_suite.h" |
+#if defined(OS_ANDROID) |
+#include "base/android/jni_android.h" |
+#include "base/test/test_file_util.h" |
+#endif |
+ |
int main(int argc, char** argv) { |
+#if defined(OS_ANDROID) |
+ // Register JNI bindings for android. |
+ base::RegisterContentUriTestUtils(base::android::AttachCurrentThread()); |
+#endif |
#if !defined(OS_IOS) |
content::InitializeMojo(); |
#endif |