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

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: Remove an errant include. 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 prefs::kEnableTranslate), 218 prefs::kEnableTranslate),
219 TypeAndName(kPolicyAllowOutdatedPlugins, 219 TypeAndName(kPolicyAllowOutdatedPlugins,
220 prefs::kPluginsAllowOutdated), 220 prefs::kPluginsAllowOutdated),
221 TypeAndName(kPolicyAlwaysAuthorizePlugins, 221 TypeAndName(kPolicyAlwaysAuthorizePlugins,
222 prefs::kPluginsAlwaysAuthorize), 222 prefs::kPluginsAlwaysAuthorize),
223 TypeAndName(kPolicyBookmarkBarEnabled, 223 TypeAndName(kPolicyBookmarkBarEnabled,
224 prefs::kEnableBookmarkBar), 224 prefs::kEnableBookmarkBar),
225 TypeAndName(kPolicyEditBookmarksEnabled, 225 TypeAndName(kPolicyEditBookmarksEnabled,
226 prefs::kEditBookmarksEnabled), 226 prefs::kEditBookmarksEnabled),
227 TypeAndName(kPolicyAllowFileSelectionDialogs, 227 TypeAndName(kPolicyAllowFileSelectionDialogs,
228 prefs::kAllowFileSelectionDialogs), 228 prefs::kAllowFileSelectionDialogs)));
229 TypeAndName(kPolicyChromotingEnabled,
230 prefs::kChromotingEnabled),
231 TypeAndName(kPolicyChromotingHostEnabled,
232 prefs::kChromotingHostEnabled),
233 TypeAndName(kPolicyChromotingHostFirewallTraversal,
234 prefs::kChromotingHostFirewallTraversal)));
235 229
236 #if defined(OS_CHROMEOS) 230 #if defined(OS_CHROMEOS)
237 INSTANTIATE_TEST_CASE_P( 231 INSTANTIATE_TEST_CASE_P(
238 CrosConfigurationPolicyPrefStoreBooleanTestInstance, 232 CrosConfigurationPolicyPrefStoreBooleanTestInstance,
239 ConfigurationPolicyPrefStoreBooleanTest, 233 ConfigurationPolicyPrefStoreBooleanTest,
240 testing::Values( 234 testing::Values(
241 TypeAndName(kPolicyChromeOsLockOnIdleSuspend, 235 TypeAndName(kPolicyChromeOsLockOnIdleSuspend,
242 prefs::kEnableScreenLock))); 236 prefs::kEnableScreenLock)));
243 #endif // defined(OS_CHROMEOS) 237 #endif // defined(OS_CHROMEOS)
244 238
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 823
830 provider_.SetInitializationComplete(true); 824 provider_.SetInitializationComplete(true);
831 EXPECT_FALSE(store_->IsInitializationComplete()); 825 EXPECT_FALSE(store_->IsInitializationComplete());
832 826
833 store_->OnUpdatePolicy(); 827 store_->OnUpdatePolicy();
834 Mock::VerifyAndClearExpectations(&observer_); 828 Mock::VerifyAndClearExpectations(&observer_);
835 EXPECT_TRUE(store_->IsInitializationComplete()); 829 EXPECT_TRUE(store_->IsInitializationComplete());
836 } 830 }
837 831
838 } // namespace policy 832 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store.cc ('k') | chrome/browser/policy/managed_prefs_banner_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698