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

Side by Side Diff: chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/policy/configuration_policy_pref_store.h" 5 #include "chrome/browser/policy/configuration_policy_pref_store_test.h"
6 #include "chrome/browser/policy/configuration_policy_pref_store_unittest.h"
7 #include "chrome/browser/prefs/incognito_mode_prefs.h" 6 #include "chrome/browser/prefs/incognito_mode_prefs.h"
8 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" 7 #include "chrome/browser/profiles/incognito_mode_policy_handler.h"
9 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
9 #include "components/policy/core/browser/configuration_policy_pref_store.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
11 #include "policy/policy_constants.h" 11 #include "policy/policy_constants.h"
12 12
13 namespace policy { 13 namespace policy {
14 14
15 // Tests Incognito mode availability preference setting. 15 // Tests Incognito mode availability preference setting.
16 class IncognitoModePolicyHandlerTest 16 class IncognitoModePolicyHandlerTest
17 : public ConfigurationPolicyPrefStoreTest { 17 : public ConfigurationPolicyPrefStoreTest {
18 public: 18 public:
19 virtual void SetUp() OVERRIDE { 19 virtual void SetUp() OVERRIDE {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 VerifyValues(IncognitoModePrefs::ENABLED); 104 VerifyValues(IncognitoModePrefs::ENABLED);
105 } 105 }
106 106
107 TEST_F(IncognitoModePolicyHandlerTest, 107 TEST_F(IncognitoModePolicyHandlerTest,
108 ObsoletePolicySetsPreferenceToDisabled) { 108 ObsoletePolicySetsPreferenceToDisabled) {
109 SetPolicies(INCOGNITO_ENABLED_FALSE, kIncognitoModeAvailabilityNotSet); 109 SetPolicies(INCOGNITO_ENABLED_FALSE, kIncognitoModeAvailabilityNotSet);
110 VerifyValues(IncognitoModePrefs::DISABLED); 110 VerifyValues(IncognitoModePrefs::DISABLED);
111 } 111 }
112 112
113 } // namespace policy 113 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/profiles/incognito_mode_policy_handler.h ('k') | chrome/browser/search_engines/default_search_policy_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698