| 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 b19d92f4a3bd224e08a71894d4ed6273a88b42fe..7c5e3e3a230af81d37f26e37bb28a3510b061198 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_;
|
|
|