Index: gpu/command_buffer/tests/gl_readback_unittest.cc |
diff --git a/gpu/command_buffer/tests/gl_readback_unittest.cc b/gpu/command_buffer/tests/gl_readback_unittest.cc |
index cbda25ccfa8ba204d340cfdaae43a260f8e7c3d0..b4a88ee6726ba87a7d21435505db51c7c011e93a 100644 |
--- a/gpu/command_buffer/tests/gl_readback_unittest.cc |
+++ b/gpu/command_buffer/tests/gl_readback_unittest.cc |
@@ -10,8 +10,10 @@ |
#include "base/basictypes.h" |
#include "base/bind.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/location.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "gpu/command_buffer/tests/gl_manager.h" |
#include "gpu/command_buffer/tests/gl_test_utils.h" |
#include "testing/gmock/include/gmock/gmock.h" |
@@ -31,9 +33,8 @@ class GLReadbackTest : public testing::Test { |
if (done) { |
cb.Run(); |
} else { |
- base::MessageLoop::current()->PostDelayedTask( |
- FROM_HERE, |
- base::Bind(&WaitForQueryCallback, q, cb), |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
+ FROM_HERE, base::Bind(&WaitForQueryCallback, q, cb), |
base::TimeDelta::FromMilliseconds(3)); |
} |
} |