OLD | NEW |
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 Loading... |
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 |
OLD | NEW |