| Index: remoting/host/policy_watcher_unittest.cc
|
| diff --git a/remoting/host/policy_watcher_unittest.cc b/remoting/host/policy_watcher_unittest.cc
|
| index 4b70a6ad5b09acadae868a5b1512677c136c8e2b..3447f56920edc130c65add4286e8463e6e2ba99e 100644
|
| --- a/remoting/host/policy_watcher_unittest.cc
|
| +++ b/remoting/host/policy_watcher_unittest.cc
|
| @@ -239,6 +239,7 @@ class PolicyWatcherTest : public testing::Test {
|
| return policy_watcher_->GetPolicySchema();
|
| }
|
|
|
| + // TODO(jamiewalch): Update this to use PolicyWatcher::GetDefaultValues()
|
| const base::DictionaryValue& GetDefaultValues() {
|
| return *(policy_watcher_->default_values_);
|
| }
|
| @@ -769,4 +770,18 @@ TEST_F(PolicyWatcherTest, DeprecatedEmpty) {
|
| StartWatching();
|
| }
|
|
|
| +TEST_F(PolicyWatcherTest, GetCurrentPolicies) {
|
| + testing::InSequence sequence;
|
| + EXPECT_CALL(mock_policy_callback_,
|
| + OnPolicyUpdatePtr(IsPolicies(&nat_true_others_default_)));
|
| + EXPECT_CALL(mock_policy_callback_,
|
| + OnPolicyUpdatePtr(IsPolicies(&nat_false_)));
|
| +
|
| + StartWatching();
|
| + SetPolicies(nat_false_);
|
| + std::unique_ptr<base::DictionaryValue> current_policies =
|
| + policy_watcher_->GetCurrentPolicies();
|
| + ASSERT_TRUE(*current_policies == nat_false_others_default_);
|
| +}
|
| +
|
| } // namespace remoting
|
|
|