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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 prefs::kEnableTranslate), | 218 prefs::kEnableTranslate), |
219 TypeAndName(kPolicyAllowOutdatedPlugins, | 219 TypeAndName(kPolicyAllowOutdatedPlugins, |
220 prefs::kPluginsAllowOutdated), | 220 prefs::kPluginsAllowOutdated), |
221 TypeAndName(kPolicyAlwaysAuthorizePlugins, | 221 TypeAndName(kPolicyAlwaysAuthorizePlugins, |
222 prefs::kPluginsAlwaysAuthorize), | 222 prefs::kPluginsAlwaysAuthorize), |
223 TypeAndName(kPolicyBookmarkBarEnabled, | 223 TypeAndName(kPolicyBookmarkBarEnabled, |
224 prefs::kEnableBookmarkBar), | 224 prefs::kEnableBookmarkBar), |
225 TypeAndName(kPolicyEditBookmarksEnabled, | 225 TypeAndName(kPolicyEditBookmarksEnabled, |
226 prefs::kEditBookmarksEnabled), | 226 prefs::kEditBookmarksEnabled), |
227 TypeAndName(kPolicyAllowFileSelectionDialogs, | 227 TypeAndName(kPolicyAllowFileSelectionDialogs, |
228 prefs::kAllowFileSelectionDialogs), | 228 prefs::kAllowFileSelectionDialogs))); |
229 TypeAndName(kPolicyChromotingEnabled, | |
230 prefs::kChromotingEnabled), | |
231 TypeAndName(kPolicyChromotingHostEnabled, | |
232 prefs::kChromotingHostEnabled), | |
233 TypeAndName(kPolicyChromotingHostFirewallTraversal, | |
234 prefs::kChromotingHostFirewallTraversal))); | |
235 | 229 |
236 #if defined(OS_CHROMEOS) | 230 #if defined(OS_CHROMEOS) |
237 INSTANTIATE_TEST_CASE_P( | 231 INSTANTIATE_TEST_CASE_P( |
238 CrosConfigurationPolicyPrefStoreBooleanTestInstance, | 232 CrosConfigurationPolicyPrefStoreBooleanTestInstance, |
239 ConfigurationPolicyPrefStoreBooleanTest, | 233 ConfigurationPolicyPrefStoreBooleanTest, |
240 testing::Values( | 234 testing::Values( |
241 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, | 235 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, |
242 prefs::kEnableScreenLock))); | 236 prefs::kEnableScreenLock))); |
243 #endif // defined(OS_CHROMEOS) | 237 #endif // defined(OS_CHROMEOS) |
244 | 238 |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 | 823 |
830 provider_.SetInitializationComplete(true); | 824 provider_.SetInitializationComplete(true); |
831 EXPECT_FALSE(store_->IsInitializationComplete()); | 825 EXPECT_FALSE(store_->IsInitializationComplete()); |
832 | 826 |
833 store_->OnUpdatePolicy(); | 827 store_->OnUpdatePolicy(); |
834 Mock::VerifyAndClearExpectations(&observer_); | 828 Mock::VerifyAndClearExpectations(&observer_); |
835 EXPECT_TRUE(store_->IsInitializationComplete()); | 829 EXPECT_TRUE(store_->IsInitializationComplete()); |
836 } | 830 } |
837 | 831 |
838 } // namespace policy | 832 } // namespace policy |
OLD | NEW |