| Index: remoting/host/policy_hack/policy_watcher_unittest.cc
|
| diff --git a/remoting/host/policy_hack/policy_watcher_unittest.cc b/remoting/host/policy_hack/policy_watcher_unittest.cc
|
| index 5cae57b2093e16a58ec6b31ac2ca0c907a5d238c..bef254c8cfcc973f6cd20111c3f394d694642e3d 100644
|
| --- a/remoting/host/policy_hack/policy_watcher_unittest.cc
|
| +++ b/remoting/host/policy_hack/policy_watcher_unittest.cc
|
| @@ -99,12 +99,14 @@ class PolicyWatcherTest : public testing::Test {
|
| }
|
|
|
| void StopWatching() {
|
| - base::WaitableEvent stop_event(false, false);
|
| - policy_watcher_->StopWatching(&stop_event);
|
| + EXPECT_CALL(*this, PostPolicyWatcherShutdown()).Times(1);
|
| + policy_watcher_->StopWatching(base::Bind(
|
| + &PolicyWatcherTest::PostPolicyWatcherShutdown, base::Unretained(this)));
|
| base::RunLoop().RunUntilIdle();
|
| - EXPECT_EQ(true, stop_event.IsSignaled());
|
| }
|
|
|
| + MOCK_METHOD0(PostPolicyWatcherShutdown, void());
|
| +
|
| static const char* kHostDomain;
|
| static const char* kPortRange;
|
| base::MessageLoop message_loop_;
|
|
|