Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: remoting/host/policy_watcher_unittest.cc

Issue 2867223003: Send a message to the client if bad It2Me policies are read. (Closed)
Patch Set: Fix race. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/policy_watcher.cc ('k') | remoting/resources/remoting_strings.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/policy_watcher_unittest.cc
diff --git a/remoting/host/policy_watcher_unittest.cc b/remoting/host/policy_watcher_unittest.cc
index 3447f56920edc130c65add4286e8463e6e2ba99e..2b220a218594b5a5c5b679cb0c8d7d7c24d1ec59 100644
--- a/remoting/host/policy_watcher_unittest.cc
+++ b/remoting/host/policy_watcher_unittest.cc
@@ -784,4 +784,14 @@ TEST_F(PolicyWatcherTest, GetCurrentPolicies) {
ASSERT_TRUE(*current_policies == nat_false_others_default_);
}
+TEST_F(PolicyWatcherTest, GetCurrentPoliciesError) {
+ EXPECT_CALL(mock_policy_callback_, OnPolicyError());
+
+ SetPolicies(nat_one_);
+ StartWatching();
+ std::unique_ptr<base::DictionaryValue> current_policies =
+ policy_watcher_->GetCurrentPolicies();
+ ASSERT_EQ(0u, current_policies->size());
+}
+
} // namespace remoting
« no previous file with comments | « remoting/host/policy_watcher.cc ('k') | remoting/resources/remoting_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698