Index: base/task_runner_util_unittest.cc |
diff --git a/base/task_runner_util_unittest.cc b/base/task_runner_util_unittest.cc |
index 8245cfcdc50a94b3517b2a545b99315f971909b6..481f09ebd197c0d40d541d3bb7054d1a1abce7f5 100644 |
--- a/base/task_runner_util_unittest.cc |
+++ b/base/task_runner_util_unittest.cc |
@@ -5,7 +5,7 @@ |
#include "base/task_runner_util.h" |
#include "base/bind.h" |
-#include "base/location.h" |
+#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -69,7 +69,8 @@ |
int result = 0; |
MessageLoop message_loop; |
- PostTaskAndReplyWithResult(message_loop.task_runner().get(), FROM_HERE, |
+ PostTaskAndReplyWithResult(message_loop.message_loop_proxy().get(), |
+ FROM_HERE, |
Bind(&ReturnFourtyTwo), |
Bind(&StoreValue, &result)); |
@@ -82,7 +83,8 @@ |
double result = 0; |
MessageLoop message_loop; |
- PostTaskAndReplyWithResult(message_loop.task_runner().get(), FROM_HERE, |
+ PostTaskAndReplyWithResult(message_loop.message_loop_proxy().get(), |
+ FROM_HERE, |
Bind(&ReturnFourtyTwo), |
Bind(&StoreDoubleValue, &result)); |
@@ -96,8 +98,10 @@ |
g_foo_free_count = 0; |
MessageLoop message_loop; |
- PostTaskAndReplyWithResult(message_loop.task_runner().get(), FROM_HERE, |
- Bind(&CreateFoo), Bind(&ExpectFoo)); |
+ PostTaskAndReplyWithResult(message_loop.message_loop_proxy().get(), |
+ FROM_HERE, |
+ Bind(&CreateFoo), |
+ Bind(&ExpectFoo)); |
RunLoop().RunUntilIdle(); |
@@ -110,8 +114,10 @@ |
g_foo_free_count = 0; |
MessageLoop message_loop; |
- PostTaskAndReplyWithResult(message_loop.task_runner().get(), FROM_HERE, |
- Bind(&CreateScopedFoo), Bind(&ExpectScopedFoo)); |
+ PostTaskAndReplyWithResult(message_loop.message_loop_proxy().get(), |
+ FROM_HERE, |
+ Bind(&CreateScopedFoo), |
+ Bind(&ExpectScopedFoo)); |
RunLoop().RunUntilIdle(); |