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

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

Issue 6955010: Remove the Remoting Host component from Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/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/proxy_config_dictionary.h" 9 #include "chrome/browser/prefs/proxy_config_dictionary.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 prefs::kPluginsAllowOutdated), 212 prefs::kPluginsAllowOutdated),
213 TypeAndName(kPolicyAlwaysAuthorizePlugins, 213 TypeAndName(kPolicyAlwaysAuthorizePlugins,
214 prefs::kPluginsAlwaysAuthorize), 214 prefs::kPluginsAlwaysAuthorize),
215 TypeAndName(kPolicyBookmarkBarEnabled, 215 TypeAndName(kPolicyBookmarkBarEnabled,
216 prefs::kEnableBookmarkBar), 216 prefs::kEnableBookmarkBar),
217 TypeAndName(kPolicyEditBookmarksEnabled, 217 TypeAndName(kPolicyEditBookmarksEnabled,
218 prefs::kEditBookmarksEnabled), 218 prefs::kEditBookmarksEnabled),
219 TypeAndName(kPolicyAllowFileSelectionDialogs, 219 TypeAndName(kPolicyAllowFileSelectionDialogs,
220 prefs::kAllowFileSelectionDialogs), 220 prefs::kAllowFileSelectionDialogs),
221 TypeAndName(kPolicyChromotingEnabled, 221 TypeAndName(kPolicyChromotingEnabled,
222 prefs::kChromotingEnabled), 222 prefs::kChromotingEnabled)));
223 TypeAndName(kPolicyChromotingHostEnabled,
224 prefs::kChromotingHostEnabled),
225 TypeAndName(kPolicyChromotingHostFirewallTraversal,
226 prefs::kChromotingHostFirewallTraversal)));
227 223
228 #if defined(OS_CHROMEOS) 224 #if defined(OS_CHROMEOS)
229 INSTANTIATE_TEST_CASE_P( 225 INSTANTIATE_TEST_CASE_P(
230 CrosConfigurationPolicyPrefStoreBooleanTestInstance, 226 CrosConfigurationPolicyPrefStoreBooleanTestInstance,
231 ConfigurationPolicyPrefStoreBooleanTest, 227 ConfigurationPolicyPrefStoreBooleanTest,
232 testing::Values( 228 testing::Values(
233 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, 229 TypeAndName(kPolicyChromeOsLockOnIdleSuspend,
234 prefs::kEnableScreenLock))); 230 prefs::kEnableScreenLock)));
235 #endif // defined(OS_CHROMEOS) 231 #endif // defined(OS_CHROMEOS)
236 232
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 749
754 provider_.SetInitializationComplete(true); 750 provider_.SetInitializationComplete(true);
755 EXPECT_FALSE(store_->IsInitializationComplete()); 751 EXPECT_FALSE(store_->IsInitializationComplete());
756 752
757 store_->OnUpdatePolicy(); 753 store_->OnUpdatePolicy();
758 Mock::VerifyAndClearExpectations(&observer_); 754 Mock::VerifyAndClearExpectations(&observer_);
759 EXPECT_TRUE(store_->IsInitializationComplete()); 755 EXPECT_TRUE(store_->IsInitializationComplete());
760 } 756 }
761 757
762 } // namespace policy 758 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698