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

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

Issue 6279012: Implement pref policy for disabling incognito mode.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/ref_counted.h" 6 #include "base/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_prefs.h" 9 #include "chrome/browser/prefs/proxy_prefs.h"
10 #include "chrome/common/notification_service.h" 10 #include "chrome/common/notification_service.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 TypeAndName(kPolicyPasswordManagerEnabled, 169 TypeAndName(kPolicyPasswordManagerEnabled,
170 prefs::kPasswordManagerEnabled), 170 prefs::kPasswordManagerEnabled),
171 TypeAndName(kPolicyPasswordManagerAllowShowPasswords, 171 TypeAndName(kPolicyPasswordManagerAllowShowPasswords,
172 prefs::kPasswordManagerAllowShowPasswords), 172 prefs::kPasswordManagerAllowShowPasswords),
173 TypeAndName(kPolicyShowHomeButton, 173 TypeAndName(kPolicyShowHomeButton,
174 prefs::kShowHomeButton), 174 prefs::kShowHomeButton),
175 TypeAndName(kPolicyPrintingEnabled, 175 TypeAndName(kPolicyPrintingEnabled,
176 prefs::kPrintingEnabled), 176 prefs::kPrintingEnabled),
177 TypeAndName(kPolicyJavascriptEnabled, 177 TypeAndName(kPolicyJavascriptEnabled,
178 prefs::kWebKitJavascriptEnabled), 178 prefs::kWebKitJavascriptEnabled),
179 TypeAndName(kPolicyIncognitoEnabled,
180 prefs::kIncognitoEnabled),
179 TypeAndName(kPolicySavingBrowserHistoryDisabled, 181 TypeAndName(kPolicySavingBrowserHistoryDisabled,
180 prefs::kSavingBrowserHistoryDisabled), 182 prefs::kSavingBrowserHistoryDisabled),
181 TypeAndName(kPolicySavingBrowserHistoryDisabled, 183 TypeAndName(kPolicySavingBrowserHistoryDisabled,
182 prefs::kSavingBrowserHistoryDisabled), 184 prefs::kSavingBrowserHistoryDisabled),
183 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, 185 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup,
184 prefs::kDisableAuthNegotiateCnameLookup), 186 prefs::kDisableAuthNegotiateCnameLookup),
185 TypeAndName(kPolicyEnableAuthNegotiatePort, 187 TypeAndName(kPolicyEnableAuthNegotiatePort,
186 prefs::kEnableAuthNegotiatePort), 188 prefs::kEnableAuthNegotiatePort),
187 TypeAndName(kPolicyDisable3DAPIs, 189 TypeAndName(kPolicyDisable3DAPIs,
188 prefs::kDisable3DAPIs))); 190 prefs::kDisable3DAPIs)));
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 699
698 provider_.SetInitializationComplete(true); 700 provider_.SetInitializationComplete(true);
699 EXPECT_FALSE(store_->IsInitializationComplete()); 701 EXPECT_FALSE(store_->IsInitializationComplete());
700 702
701 store_->OnUpdatePolicy(); 703 store_->OnUpdatePolicy();
702 Mock::VerifyAndClearExpectations(&observer_); 704 Mock::VerifyAndClearExpectations(&observer_);
703 EXPECT_TRUE(store_->IsInitializationComplete()); 705 EXPECT_TRUE(store_->IsInitializationComplete());
704 } 706 }
705 707
706 } // namespace policy 708 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698