summaryrefslogtreecommitdiffstats
path: root/remoting/host/policy_hack/policy_watcher_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/policy_hack/policy_watcher_unittest.cc')
-rw-r--r--remoting/host/policy_hack/policy_watcher_unittest.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/remoting/host/policy_hack/policy_watcher_unittest.cc b/remoting/host/policy_hack/policy_watcher_unittest.cc
index 5cae57b..bef254c 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_;