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

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

Issue 6027004: Revert 69753 - Added group policy for disabling all client-side 3D APIs in Ch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <gtest/gtest.h> 5 #include <gtest/gtest.h>
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "chrome/browser/policy/configuration_policy_pref_store.h" 8 #include "chrome/browser/policy/configuration_policy_pref_store.h"
9 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 9 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 prefs::kPrintingEnabled), 178 prefs::kPrintingEnabled),
179 TypeAndName(kPolicyJavascriptEnabled, 179 TypeAndName(kPolicyJavascriptEnabled,
180 prefs::kWebKitJavascriptEnabled), 180 prefs::kWebKitJavascriptEnabled),
181 TypeAndName(kPolicySavingBrowserHistoryDisabled, 181 TypeAndName(kPolicySavingBrowserHistoryDisabled,
182 prefs::kSavingBrowserHistoryDisabled), 182 prefs::kSavingBrowserHistoryDisabled),
183 TypeAndName(kPolicySavingBrowserHistoryDisabled, 183 TypeAndName(kPolicySavingBrowserHistoryDisabled,
184 prefs::kSavingBrowserHistoryDisabled), 184 prefs::kSavingBrowserHistoryDisabled),
185 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, 185 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup,
186 prefs::kDisableAuthNegotiateCnameLookup), 186 prefs::kDisableAuthNegotiateCnameLookup),
187 TypeAndName(kPolicyEnableAuthNegotiatePort, 187 TypeAndName(kPolicyEnableAuthNegotiatePort,
188 prefs::kEnableAuthNegotiatePort), 188 prefs::kEnableAuthNegotiatePort)));
189 TypeAndName(kPolicyDisable3DAPIs,
190 prefs::kDisable3DAPIs)));
191 189
192 #if defined(OS_CHROMEOS) 190 #if defined(OS_CHROMEOS)
193 INSTANTIATE_TEST_CASE_P( 191 INSTANTIATE_TEST_CASE_P(
194 CrosConfigurationPolicyPrefStoreBooleanTestInstance, 192 CrosConfigurationPolicyPrefStoreBooleanTestInstance,
195 ConfigurationPolicyPrefStoreBooleanTest, 193 ConfigurationPolicyPrefStoreBooleanTest,
196 testing::Values( 194 testing::Values(
197 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, 195 TypeAndName(kPolicyChromeOsLockOnIdleSuspend,
198 prefs::kEnableScreenLock))); 196 prefs::kEnableScreenLock)));
199 #endif // defined(OS_CHROMEOS) 197 #endif // defined(OS_CHROMEOS)
200 198
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 622
625 TEST_F(ConfigurationPolicyPrefStoreAutoFillTest, Disabled) { 623 TEST_F(ConfigurationPolicyPrefStoreAutoFillTest, Disabled) {
626 store_.Apply(kPolicyAutoFillEnabled, Value::CreateBooleanValue(false)); 624 store_.Apply(kPolicyAutoFillEnabled, Value::CreateBooleanValue(false));
627 // Disabling AutoFill should switch the pref to managed. 625 // Disabling AutoFill should switch the pref to managed.
628 bool result = true; 626 bool result = true;
629 EXPECT_TRUE(store_.prefs()->GetBoolean(prefs::kAutoFillEnabled, &result)); 627 EXPECT_TRUE(store_.prefs()->GetBoolean(prefs::kAutoFillEnabled, &result));
630 EXPECT_FALSE(result); 628 EXPECT_FALSE(result);
631 } 629 }
632 630
633 } // namespace policy 631 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store.cc ('k') | chrome/browser/policy/configuration_policy_store_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698