| 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 bef254c8cfcc973f6cd20111c3f394d694642e3d..5cae57b2093e16a58ec6b31ac2ca0c907a5d238c 100644
|
| --- a/remoting/host/policy_hack/policy_watcher_unittest.cc
|
| +++ b/remoting/host/policy_hack/policy_watcher_unittest.cc
|
| @@ -99,13 +99,11 @@
|
| }
|
|
|
| void StopWatching() {
|
| - EXPECT_CALL(*this, PostPolicyWatcherShutdown()).Times(1);
|
| - policy_watcher_->StopWatching(base::Bind(
|
| - &PolicyWatcherTest::PostPolicyWatcherShutdown, base::Unretained(this)));
|
| + base::WaitableEvent stop_event(false, false);
|
| + policy_watcher_->StopWatching(&stop_event);
|
| base::RunLoop().RunUntilIdle();
|
| + EXPECT_EQ(true, stop_event.IsSignaled());
|
| }
|
| -
|
| - MOCK_METHOD0(PostPolicyWatcherShutdown, void());
|
|
|
| static const char* kHostDomain;
|
| static const char* kPortRange;
|
|
|