| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/policy/configuration_policy_provider_test.h" | 5 #include "chrome/browser/policy/configuration_policy_provider_test.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/policy/asynchronous_policy_loader.h" | |
| 11 #include "chrome/browser/policy/asynchronous_policy_provider.h" | |
| 12 #include "chrome/browser/policy/configuration_policy_provider.h" | 10 #include "chrome/browser/policy/configuration_policy_provider.h" |
| 13 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 11 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
| 14 #include "chrome/browser/policy/policy_bundle.h" | 12 #include "chrome/browser/policy/policy_bundle.h" |
| 15 #include "chrome/browser/policy/policy_map.h" | 13 #include "chrome/browser/policy/policy_map.h" |
| 16 #include "policy/policy_constants.h" | 14 #include "policy/policy_constants.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 18 | 16 |
| 19 using ::testing::Mock; | 17 using ::testing::Mock; |
| 20 using ::testing::_; | 18 using ::testing::_; |
| 21 | 19 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 PolicyBundle expected_bundle; | 239 PolicyBundle expected_bundle; |
| 242 base::DictionaryValue* expected_value = new base::DictionaryValue(); | 240 base::DictionaryValue* expected_value = new base::DictionaryValue(); |
| 243 expected_value->SetInteger(key::kProxyServerMode, 3); | 241 expected_value->SetInteger(key::kProxyServerMode, 3); |
| 244 expected_bundle.Get(POLICY_DOMAIN_CHROME, "") | 242 expected_bundle.Get(POLICY_DOMAIN_CHROME, "") |
| 245 .Set(key::kProxySettings, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, | 243 .Set(key::kProxySettings, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, |
| 246 expected_value); | 244 expected_value); |
| 247 EXPECT_TRUE(provider.policies().Equals(expected_bundle)); | 245 EXPECT_TRUE(provider.policies().Equals(expected_bundle)); |
| 248 } | 246 } |
| 249 | 247 |
| 250 } // namespace policy | 248 } // namespace policy |
| OLD | NEW |