| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 8 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 8 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
| 9 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 9 #include "chrome/browser/prefs/proxy_config_dictionary.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 prefs::kPluginsAllowOutdated), | 234 prefs::kPluginsAllowOutdated), |
| 235 TypeAndName(kPolicyAlwaysAuthorizePlugins, | 235 TypeAndName(kPolicyAlwaysAuthorizePlugins, |
| 236 prefs::kPluginsAlwaysAuthorize), | 236 prefs::kPluginsAlwaysAuthorize), |
| 237 TypeAndName(kPolicyBookmarkBarEnabled, | 237 TypeAndName(kPolicyBookmarkBarEnabled, |
| 238 prefs::kEnableBookmarkBar), | 238 prefs::kEnableBookmarkBar), |
| 239 TypeAndName(kPolicyEditBookmarksEnabled, | 239 TypeAndName(kPolicyEditBookmarksEnabled, |
| 240 prefs::kEditBookmarksEnabled), | 240 prefs::kEditBookmarksEnabled), |
| 241 TypeAndName(kPolicyAllowFileSelectionDialogs, | 241 TypeAndName(kPolicyAllowFileSelectionDialogs, |
| 242 prefs::kAllowFileSelectionDialogs), | 242 prefs::kAllowFileSelectionDialogs), |
| 243 TypeAndName(kPolicyAllowCrossOriginAuthPrompt, | 243 TypeAndName(kPolicyAllowCrossOriginAuthPrompt, |
| 244 prefs::kAllowCrossOriginAuthPrompt))); | 244 prefs::kAllowCrossOriginAuthPrompt), |
| 245 TypeAndName(kPolicyDefaultAutoSubmitCertificateSetting, |
| 246 prefs::kManagedDefaultAutoSubmitCertificateSetting))); |
| 245 | 247 |
| 246 #if defined(OS_CHROMEOS) | 248 #if defined(OS_CHROMEOS) |
| 247 INSTANTIATE_TEST_CASE_P( | 249 INSTANTIATE_TEST_CASE_P( |
| 248 CrosConfigurationPolicyPrefStoreBooleanTestInstance, | 250 CrosConfigurationPolicyPrefStoreBooleanTestInstance, |
| 249 ConfigurationPolicyPrefStoreBooleanTest, | 251 ConfigurationPolicyPrefStoreBooleanTest, |
| 250 testing::Values( | 252 testing::Values( |
| 251 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, | 253 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, |
| 252 prefs::kEnableScreenLock))); | 254 prefs::kEnableScreenLock))); |
| 253 #endif // defined(OS_CHROMEOS) | 255 #endif // defined(OS_CHROMEOS) |
| 254 | 256 |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 | 873 |
| 872 provider_.SetInitializationComplete(true); | 874 provider_.SetInitializationComplete(true); |
| 873 EXPECT_FALSE(store_->IsInitializationComplete()); | 875 EXPECT_FALSE(store_->IsInitializationComplete()); |
| 874 | 876 |
| 875 store_->OnUpdatePolicy(); | 877 store_->OnUpdatePolicy(); |
| 876 Mock::VerifyAndClearExpectations(&observer_); | 878 Mock::VerifyAndClearExpectations(&observer_); |
| 877 EXPECT_TRUE(store_->IsInitializationComplete()); | 879 EXPECT_TRUE(store_->IsInitializationComplete()); |
| 878 } | 880 } |
| 879 | 881 |
| 880 } // namespace policy | 882 } // namespace policy |
| OLD | NEW |