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

Unified Diff: chrome/browser/chromeos/login/mock_user_manager.h

Issue 14139003: Chrome OS multi-profiles backend and UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move IsMultiProfilesEnabled() out of cros 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
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/mock_user_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/mock_user_manager.h
diff --git a/chrome/browser/chromeos/login/mock_user_manager.h b/chrome/browser/chromeos/login/mock_user_manager.h
index 5f4e02c11027c4b66891b3abacd0bdb8880f5e7b..d3c15e42f22c3aea2612ade33d5deb85625bfb3e 100644
--- a/chrome/browser/chromeos/login/mock_user_manager.h
+++ b/chrome/browser/chromeos/login/mock_user_manager.h
@@ -25,8 +25,10 @@ class MockUserManager : public UserManager {
MOCK_METHOD0(Shutdown, void(void));
MOCK_CONST_METHOD0(GetUsers, const UserList&(void));
+ MOCK_CONST_METHOD0(GetLoggedInUsers, const UserList&(void));
MOCK_METHOD3(UserLoggedIn, void(
const std::string&, const std::string&, bool));
+ MOCK_METHOD1(SwitchActiveUser, void(const std::string& email));
MOCK_METHOD0(RetailModeUserLoggedIn, void(void));
MOCK_METHOD0(GuestUserLoggedIn, void(void));
MOCK_METHOD1(KioskAppLoggedIn, void(const std::string& app_id));
@@ -87,13 +89,12 @@ class MockUserManager : public UserManager {
MOCK_METHOD2(SetAppModeChromeClientOAuthInfo, void(const std::string&,
const std::string&));
- // You can't mock this function easily because nobody can create User objects
- // but the UserManagerImpl and us.
+ // You can't mock these functions easily because nobody can create
+ // User objects but the UserManagerImpl and us.
virtual const User* GetLoggedInUser() const OVERRIDE;
-
- // You can't mock this function easily because nobody can create User objects
- // but the UserManagerImpl and us.
virtual User* GetLoggedInUser() OVERRIDE;
+ virtual const User* GetActiveUser() const OVERRIDE;
+ virtual User* GetActiveUser() OVERRIDE;
virtual UserImageManager* GetUserImageManager() OVERRIDE;
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/mock_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698