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

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

Issue 8772014: Add a preference for enabling the TLS origin-bound certificates extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change policy_templates.json as mnissler suggested Created 9 years 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal, 208 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal,
209 prefs::kRemoteAccessHostFirewallTraversal), 209 prefs::kRemoteAccessHostFirewallTraversal),
210 TypeAndName(kPolicyCloudPrintProxyEnabled, 210 TypeAndName(kPolicyCloudPrintProxyEnabled,
211 prefs::kCloudPrintProxyEnabled), 211 prefs::kCloudPrintProxyEnabled),
212 TypeAndName(kPolicyCloudPrintSubmitEnabled, 212 TypeAndName(kPolicyCloudPrintSubmitEnabled,
213 prefs::kCloudPrintSubmitEnabled), 213 prefs::kCloudPrintSubmitEnabled),
214 TypeAndName(kPolicySavingBrowserHistoryDisabled, 214 TypeAndName(kPolicySavingBrowserHistoryDisabled,
215 prefs::kSavingBrowserHistoryDisabled), 215 prefs::kSavingBrowserHistoryDisabled),
216 TypeAndName(kPolicySavingBrowserHistoryDisabled, 216 TypeAndName(kPolicySavingBrowserHistoryDisabled,
217 prefs::kSavingBrowserHistoryDisabled), 217 prefs::kSavingBrowserHistoryDisabled),
218 TypeAndName(kPolicyEnableOriginBoundCerts,
219 prefs::kEnableOriginBoundCerts),
218 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, 220 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup,
219 prefs::kDisableAuthNegotiateCnameLookup), 221 prefs::kDisableAuthNegotiateCnameLookup),
220 TypeAndName(kPolicyEnableAuthNegotiatePort, 222 TypeAndName(kPolicyEnableAuthNegotiatePort,
221 prefs::kEnableAuthNegotiatePort), 223 prefs::kEnableAuthNegotiatePort),
222 TypeAndName(kPolicyInstantEnabled, 224 TypeAndName(kPolicyInstantEnabled,
223 prefs::kInstantEnabled), 225 prefs::kInstantEnabled),
224 TypeAndName(kPolicyDisablePluginFinder, 226 TypeAndName(kPolicyDisablePluginFinder,
225 prefs::kDisablePluginFinder), 227 prefs::kDisablePluginFinder),
226 TypeAndName(kPolicyClearSiteDataOnExit, 228 TypeAndName(kPolicyClearSiteDataOnExit,
227 prefs::kClearSiteDataOnExit), 229 prefs::kClearSiteDataOnExit),
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 // DefaultJavaScriptSetting overrides JavascriptEnabled. 1036 // DefaultJavaScriptSetting overrides JavascriptEnabled.
1035 provider_.AddPolicy(kPolicyDefaultJavaScriptSetting, 1037 provider_.AddPolicy(kPolicyDefaultJavaScriptSetting,
1036 Value::CreateIntegerValue(CONTENT_SETTING_ALLOW)); 1038 Value::CreateIntegerValue(CONTENT_SETTING_ALLOW));
1037 store_->OnUpdatePolicy(&provider_); 1039 store_->OnUpdatePolicy(&provider_);
1038 EXPECT_EQ(PrefStore::READ_OK, 1040 EXPECT_EQ(PrefStore::READ_OK,
1039 store_->GetValue(prefs::kManagedDefaultJavaScriptSetting, &value)); 1041 store_->GetValue(prefs::kManagedDefaultJavaScriptSetting, &value));
1040 EXPECT_TRUE(base::FundamentalValue(CONTENT_SETTING_ALLOW).Equals(value)); 1042 EXPECT_TRUE(base::FundamentalValue(CONTENT_SETTING_ALLOW).Equals(value));
1041 } 1043 }
1042 1044
1043 } // namespace policy 1045 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_list.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698