Index: base/test/test_support_android.cc |
diff --git a/base/test/test_support_android.cc b/base/test/test_support_android.cc |
index c35e6197fc2bb02981793f7caadcaaa33ac63e29..e75cb95ffa8881e3688ef568b7efee6594c58752 100644 |
--- a/base/test/test_support_android.cc |
+++ b/base/test/test_support_android.cc |
@@ -5,6 +5,7 @@ |
#include <stdarg.h> |
#include <string.h> |
+#include "base/android/jni_android.h" |
#include "base/android/path_utils.h" |
#include "base/files/file_path.h" |
#include "base/logging.h" |
@@ -14,6 +15,7 @@ |
#include "base/message_loop/message_pump_android.h" |
#include "base/path_service.h" |
#include "base/synchronization/waitable_event.h" |
+#include "base/test/android/test_system_message_handler_link_android.h" |
#include "base/test/multiprocess_test.h" |
namespace { |
@@ -189,6 +191,8 @@ void InitAndroidTest() { |
if (!base::AndroidIsChildProcess()) { |
InitAndroidTestLogging(); |
} |
+ base::android::TestSystemMessageHandlerLink::RegisterJNI( |
+ base::android::AttachCurrentThread()); |
InitAndroidTestMessageLoop(); |
} |
} // namespace base |