Index: remoting/host/policy_watcher_unittest.cc |
diff --git a/remoting/host/policy_watcher_unittest.cc b/remoting/host/policy_watcher_unittest.cc |
index 98458283f536c83ca829adec985fa76c0f27dc74..26f66cbac8acd8c5a48996deb48b056a8e3e9b3e 100644 |
--- a/remoting/host/policy_watcher_unittest.cc |
+++ b/remoting/host/policy_watcher_unittest.cc |
@@ -7,8 +7,10 @@ |
#include "base/json/json_writer.h" |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/test/mock_log.h" |
+#include "base/thread_task_runner_handle.h" |
#include "components/policy/core/common/fake_async_policy_loader.h" |
#include "policy/policy_constants.h" |
#include "remoting/host/dns_blackhole_checker.h" |
@@ -63,7 +65,7 @@ class PolicyWatcherTest : public testing::Test { |
EXPECT_CALL(mock_policy_callback_, OnPolicyUpdatePtr(testing::_)).Times(0); |
EXPECT_CALL(mock_policy_callback_, OnPolicyError()).Times(0); |
- message_loop_proxy_ = base::MessageLoopProxy::current(); |
+ message_loop_proxy_ = base::ThreadTaskRunnerHandle::Get(); |
// Retaining a raw pointer to keep control over policy contents. |
policy_loader_ = new policy::FakeAsyncPolicyLoader(message_loop_proxy_); |
Sergey Ulanov
2015/04/28 17:03:22
I think you can replace message_loop_proxy_ here w
anujsharma
2015/05/04 12:38:21
Done.
|
@@ -206,7 +208,7 @@ class PolicyWatcherTest : public testing::Test { |
static const char* kHostDomain; |
static const char* kPortRange; |
base::MessageLoop message_loop_; |
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
+ scoped_refptr<base::SingleThreadTaskRunner> message_loop_proxy_; |
MockPolicyCallback mock_policy_callback_; |
// |policy_loader_| is owned by |policy_watcher_|. PolicyWatcherTest retains |