| 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
|
|
|