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

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

Issue 8395007: Add policy for blocking GCP printing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build break and respond to additional feedback Created 9 years, 1 month 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 TypeAndName(kPolicyShowHomeButton, 203 TypeAndName(kPolicyShowHomeButton,
204 prefs::kShowHomeButton), 204 prefs::kShowHomeButton),
205 TypeAndName(kPolicyPrintingEnabled, 205 TypeAndName(kPolicyPrintingEnabled,
206 prefs::kPrintingEnabled), 206 prefs::kPrintingEnabled),
207 TypeAndName(kPolicyJavascriptEnabled, 207 TypeAndName(kPolicyJavascriptEnabled,
208 prefs::kWebKitJavascriptEnabled), 208 prefs::kWebKitJavascriptEnabled),
209 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal, 209 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal,
210 prefs::kRemoteAccessHostFirewallTraversal), 210 prefs::kRemoteAccessHostFirewallTraversal),
211 TypeAndName(kPolicyCloudPrintProxyEnabled, 211 TypeAndName(kPolicyCloudPrintProxyEnabled,
212 prefs::kCloudPrintProxyEnabled), 212 prefs::kCloudPrintProxyEnabled),
213 TypeAndName(kPolicyCloudPrintSubmitEnabled,
214 prefs::kCloudPrintSubmitEnabled),
213 TypeAndName(kPolicySavingBrowserHistoryDisabled, 215 TypeAndName(kPolicySavingBrowserHistoryDisabled,
214 prefs::kSavingBrowserHistoryDisabled), 216 prefs::kSavingBrowserHistoryDisabled),
215 TypeAndName(kPolicySavingBrowserHistoryDisabled, 217 TypeAndName(kPolicySavingBrowserHistoryDisabled,
216 prefs::kSavingBrowserHistoryDisabled), 218 prefs::kSavingBrowserHistoryDisabled),
217 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, 219 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup,
218 prefs::kDisableAuthNegotiateCnameLookup), 220 prefs::kDisableAuthNegotiateCnameLookup),
219 TypeAndName(kPolicyEnableAuthNegotiatePort, 221 TypeAndName(kPolicyEnableAuthNegotiatePort,
220 prefs::kEnableAuthNegotiatePort), 222 prefs::kEnableAuthNegotiatePort),
221 TypeAndName(kPolicyInstantEnabled, 223 TypeAndName(kPolicyInstantEnabled,
222 prefs::kInstantEnabled), 224 prefs::kInstantEnabled),
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 975
974 provider_.SetInitializationComplete(true); 976 provider_.SetInitializationComplete(true);
975 EXPECT_FALSE(store_->IsInitializationComplete()); 977 EXPECT_FALSE(store_->IsInitializationComplete());
976 978
977 store_->OnUpdatePolicy(); 979 store_->OnUpdatePolicy();
978 Mock::VerifyAndClearExpectations(&observer_); 980 Mock::VerifyAndClearExpectations(&observer_);
979 EXPECT_TRUE(store_->IsInitializationComplete()); 981 EXPECT_TRUE(store_->IsInitializationComplete());
980 } 982 }
981 983
982 } // namespace policy 984 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698