Index: base/cancelable_callback_unittest.cc |
diff --git a/base/cancelable_callback_unittest.cc b/base/cancelable_callback_unittest.cc |
index fcbe23c1de34acbda3eca9cf56587a97594256c1..6d0a1144c426462139cb151d917a4de4af104d4e 100644 |
--- a/base/cancelable_callback_unittest.cc |
+++ b/base/cancelable_callback_unittest.cc |
@@ -6,9 +6,11 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
+#include "base/location.h" |
#include "base/memory/ref_counted.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace base { |
@@ -165,12 +167,12 @@ TEST(CancelableCallbackTest, PostTask) { |
CancelableClosure cancelable(base::Bind(&Increment, |
base::Unretained(&count))); |
- MessageLoop::current()->PostTask(FROM_HERE, cancelable.callback()); |
+ ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, cancelable.callback()); |
RunLoop().RunUntilIdle(); |
EXPECT_EQ(1, count); |
- MessageLoop::current()->PostTask(FROM_HERE, cancelable.callback()); |
+ ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, cancelable.callback()); |
// Cancel before running the message loop. |
cancelable.Cancel(); |