Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store_unittest.cc

Issue 7537025: Add new Content settings type AUTO-SUBMIT-CERTIFICATE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/incognito_mode_prefs.h" 9 #include "chrome/browser/prefs/incognito_mode_prefs.h"
10 #include "chrome/browser/prefs/proxy_config_dictionary.h" 10 #include "chrome/browser/prefs/proxy_config_dictionary.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 prefs::kPluginsAllowOutdated), 231 prefs::kPluginsAllowOutdated),
232 TypeAndName(kPolicyAlwaysAuthorizePlugins, 232 TypeAndName(kPolicyAlwaysAuthorizePlugins,
233 prefs::kPluginsAlwaysAuthorize), 233 prefs::kPluginsAlwaysAuthorize),
234 TypeAndName(kPolicyBookmarkBarEnabled, 234 TypeAndName(kPolicyBookmarkBarEnabled,
235 prefs::kEnableBookmarkBar), 235 prefs::kEnableBookmarkBar),
236 TypeAndName(kPolicyEditBookmarksEnabled, 236 TypeAndName(kPolicyEditBookmarksEnabled,
237 prefs::kEditBookmarksEnabled), 237 prefs::kEditBookmarksEnabled),
238 TypeAndName(kPolicyAllowFileSelectionDialogs, 238 TypeAndName(kPolicyAllowFileSelectionDialogs,
239 prefs::kAllowFileSelectionDialogs), 239 prefs::kAllowFileSelectionDialogs),
240 TypeAndName(kPolicyAllowCrossOriginAuthPrompt, 240 TypeAndName(kPolicyAllowCrossOriginAuthPrompt,
241 prefs::kAllowCrossOriginAuthPrompt))); 241 prefs::kAllowCrossOriginAuthPrompt),
242 TypeAndName(kPolicyDefaultAutoSubmitCertificateSetting,
243 prefs::kManagedDefaultAutoSubmitCertificateSetting)));
242 244
243 #if defined(OS_CHROMEOS) 245 #if defined(OS_CHROMEOS)
244 INSTANTIATE_TEST_CASE_P( 246 INSTANTIATE_TEST_CASE_P(
245 CrosConfigurationPolicyPrefStoreBooleanTestInstance, 247 CrosConfigurationPolicyPrefStoreBooleanTestInstance,
246 ConfigurationPolicyPrefStoreBooleanTest, 248 ConfigurationPolicyPrefStoreBooleanTest,
247 testing::Values( 249 testing::Values(
248 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, 250 TypeAndName(kPolicyChromeOsLockOnIdleSuspend,
249 prefs::kEnableScreenLock))); 251 prefs::kEnableScreenLock)));
250 #endif // defined(OS_CHROMEOS) 252 #endif // defined(OS_CHROMEOS)
251 253
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 962
961 provider_.SetInitializationComplete(true); 963 provider_.SetInitializationComplete(true);
962 EXPECT_FALSE(store_->IsInitializationComplete()); 964 EXPECT_FALSE(store_->IsInitializationComplete());
963 965
964 store_->OnUpdatePolicy(); 966 store_->OnUpdatePolicy();
965 Mock::VerifyAndClearExpectations(&observer_); 967 Mock::VerifyAndClearExpectations(&observer_);
966 EXPECT_TRUE(store_->IsInitializationComplete()); 968 EXPECT_TRUE(store_->IsInitializationComplete());
967 } 969 }
968 970
969 } // namespace policy 971 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698