| Index: remoting/base/auto_thread_task_runner_unittest.cc
|
| diff --git a/remoting/base/auto_thread_task_runner_unittest.cc b/remoting/base/auto_thread_task_runner_unittest.cc
|
| index 9a1f712d2c567bf9349a0082f275d54bd4bc0762..8664bf73306f17c73d9136008d5259265671f767 100644
|
| --- a/remoting/base/auto_thread_task_runner_unittest.cc
|
| +++ b/remoting/base/auto_thread_task_runner_unittest.cc
|
| @@ -5,6 +5,8 @@
|
| #include "base/bind.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 "remoting/base/auto_thread_task_runner.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -26,10 +28,11 @@ TEST(AutoThreadTaskRunnerTest, StartAndStop) {
|
|
|
| // Post a task to make sure it is executed.
|
| bool success = false;
|
| - message_loop.PostTask(FROM_HERE, base::Bind(&SetFlagTask, &success));
|
| + message_loop.task_runner()->PostTask(FROM_HERE,
|
| + base::Bind(&SetFlagTask, &success));
|
|
|
| task_runner = NULL;
|
| - message_loop.Run();
|
| + base::RunLoop().Run();
|
| EXPECT_TRUE(success);
|
| }
|
|
|
|
|