Index: mojo/android/javatests/mojo_test_case.cc |
diff --git a/mojo/android/javatests/mojo_test_case.cc b/mojo/android/javatests/mojo_test_case.cc |
index 176e9bc0beb59ee34717ba47fb0805981f2db60a..6d88985df8b0b00eef74f00acaec84dda2c140a6 100644 |
--- a/mojo/android/javatests/mojo_test_case.cc |
+++ b/mojo/android/javatests/mojo_test_case.cc |
@@ -8,10 +8,13 @@ |
#include "base/android/scoped_java_ref.h" |
#include "base/at_exit.h" |
#include "base/bind.h" |
+#include "base/location.h" |
#include "base/logging.h" |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/test/test_support_android.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "jni/MojoTestCase_jni.h" |
#include "mojo/message_pump/message_pump_mojo.h" |
@@ -49,7 +52,7 @@ static void RunLoop(JNIEnv* env, |
jlong timeout_ms) { |
base::RunLoop run_loop; |
if (timeout_ms) { |
- base::MessageLoop::current()->PostDelayedTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(), |
base::TimeDelta::FromMilliseconds(timeout_ms)); |
run_loop.Run(); |