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

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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698