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

Unified Diff: chrome/browser/chromeos/login/user_manager_unittest.cc

Issue 14200028: Make CrosSettings and DeviceSettingsService non Lazy instances (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/user_manager_unittest.cc
diff --git a/chrome/browser/chromeos/login/user_manager_unittest.cc b/chrome/browser/chromeos/login/user_manager_unittest.cc
index acdd052d08bf9b23401dafb6c04dd7edbc39ad78..1998af3e9d79fe4f574fd27ec74b15e8748b314f 100644
--- a/chrome/browser/chromeos/login/user_manager_unittest.cc
+++ b/chrome/browser/chromeos/login/user_manager_unittest.cc
@@ -84,7 +84,7 @@ class UserManagerTest : public testing::Test {
UserManager::Set(old_user_manager_);
// Shut down the DeviceSettingsService.
- DeviceSettingsService::Get()->Shutdown();
+ DeviceSettingsService::Get()->UnsetSessionManager();
// Shut down the remaining UserManager instances.
if (user_manager_impl)
@@ -146,8 +146,8 @@ class UserManagerTest : public testing::Test {
StubCrosSettingsProvider stub_settings_provider_;
scoped_ptr<TestingPrefServiceSimple> local_state_;
- // Initializes / shuts down a stub CrosLibrary.
- chromeos::ScopedStubCrosEnabler stub_cros_enabler_;
+ ScopedStubCrosEnabler stub_cros_enabler_;
+ ScopedTestCrosSettings test_cros_settings_;
scoped_ptr<UserManagerImpl> user_manager_impl;
UserManager* old_user_manager_;

Powered by Google App Engine
This is Rietveld 408576698