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

Side by Side Diff: chrome/browser/chromeos/login/users/scoped_test_user_manager.h

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_LOGIN_OOBE_SESSION_MANAGER_DELEGAT E_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SCOPED_TEST_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_LOGIN_OOBE_SESSION_MANAGER_DELEGAT E_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SCOPED_TEST_USER_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/session_manager/core/session_manager.h"
11 10
12 namespace chromeos { 11 namespace chromeos {
13 12
14 class LoginOobeSessionManagerDelegate 13 class ChromeUserManager;
15 : public session_manager::SessionManagerDelegate { 14
15 // Helper class for unit tests. Initializes the UserManager singleton on
16 // construction and tears it down again on destruction.
17 class ScopedTestUserManager {
16 public: 18 public:
17 LoginOobeSessionManagerDelegate(); 19 ScopedTestUserManager();
18 virtual ~LoginOobeSessionManagerDelegate(); 20 ~ScopedTestUserManager();
19 21
20 private: 22 private:
21 // session_manager::SessionManagerDelegate implementation: 23 scoped_ptr<ChromeUserManager> chrome_user_manager_;
22 virtual void Start() OVERRIDE;
23 24
24 DISALLOW_COPY_AND_ASSIGN(LoginOobeSessionManagerDelegate); 25 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
25 }; 26 };
26 27
27 } // namespace chromeos 28 } // namespace chromeos
28 29
29 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_LOGIN_OOBE_SESSION_MANAGER_DELE GATE_H_ 30 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SCOPED_TEST_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698