OLD | NEW |
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_USERS_FAKE_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const UserAccountData& account_data) OVERRIDE {} | 56 const UserAccountData& account_data) OVERRIDE {} |
57 virtual void Shutdown() OVERRIDE {} | 57 virtual void Shutdown() OVERRIDE {} |
58 virtual MultiProfileUserController* GetMultiProfileUserController() OVERRIDE; | 58 virtual MultiProfileUserController* GetMultiProfileUserController() OVERRIDE; |
59 virtual UserImageManager* GetUserImageManager( | 59 virtual UserImageManager* GetUserImageManager( |
60 const std::string& user_id) OVERRIDE; | 60 const std::string& user_id) OVERRIDE; |
61 virtual SupervisedUserManager* GetSupervisedUserManager() OVERRIDE; | 61 virtual SupervisedUserManager* GetSupervisedUserManager() OVERRIDE; |
62 virtual const UserList& GetLRULoggedInUsers() OVERRIDE; | 62 virtual const UserList& GetLRULoggedInUsers() OVERRIDE; |
63 virtual UserList GetUnlockUsers() const OVERRIDE; | 63 virtual UserList GetUnlockUsers() const OVERRIDE; |
64 virtual const std::string& GetOwnerEmail() OVERRIDE; | 64 virtual const std::string& GetOwnerEmail() OVERRIDE; |
65 virtual void SessionStarted() OVERRIDE {} | 65 virtual void SessionStarted() OVERRIDE {} |
66 virtual void RestoreActiveSessions() OVERRIDE {} | |
67 virtual void RemoveUser(const std::string& email, | 66 virtual void RemoveUser(const std::string& email, |
68 RemoveUserDelegate* delegate) OVERRIDE {} | 67 RemoveUserDelegate* delegate) OVERRIDE {} |
69 virtual void RemoveUserFromList(const std::string& email) OVERRIDE {} | 68 virtual void RemoveUserFromList(const std::string& email) OVERRIDE {} |
70 virtual bool IsKnownUser(const std::string& email) const OVERRIDE; | 69 virtual bool IsKnownUser(const std::string& email) const OVERRIDE; |
71 virtual const User* FindUser(const std::string& email) const OVERRIDE; | 70 virtual const User* FindUser(const std::string& email) const OVERRIDE; |
72 virtual User* FindUserAndModify(const std::string& email) OVERRIDE; | 71 virtual User* FindUserAndModify(const std::string& email) OVERRIDE; |
73 virtual const User* GetLoggedInUser() const OVERRIDE; | 72 virtual const User* GetLoggedInUser() const OVERRIDE; |
74 virtual User* GetLoggedInUser() OVERRIDE; | 73 virtual User* GetLoggedInUser() OVERRIDE; |
75 virtual const User* GetPrimaryUser() const OVERRIDE; | 74 virtual const User* GetPrimaryUser() const OVERRIDE; |
76 virtual void SaveUserOAuthStatus( | 75 virtual void SaveUserOAuthStatus( |
(...skipping 13 matching lines...) Expand all Loading... |
90 virtual bool CanCurrentUserLock() const OVERRIDE; | 89 virtual bool CanCurrentUserLock() const OVERRIDE; |
91 virtual bool IsUserLoggedIn() const OVERRIDE; | 90 virtual bool IsUserLoggedIn() const OVERRIDE; |
92 virtual bool IsLoggedInAsRegularUser() const OVERRIDE; | 91 virtual bool IsLoggedInAsRegularUser() const OVERRIDE; |
93 virtual bool IsLoggedInAsDemoUser() const OVERRIDE; | 92 virtual bool IsLoggedInAsDemoUser() const OVERRIDE; |
94 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE; | 93 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE; |
95 virtual bool IsLoggedInAsGuest() const OVERRIDE; | 94 virtual bool IsLoggedInAsGuest() const OVERRIDE; |
96 virtual bool IsLoggedInAsLocallyManagedUser() const OVERRIDE; | 95 virtual bool IsLoggedInAsLocallyManagedUser() const OVERRIDE; |
97 virtual bool IsLoggedInAsKioskApp() const OVERRIDE; | 96 virtual bool IsLoggedInAsKioskApp() const OVERRIDE; |
98 virtual bool IsLoggedInAsStub() const OVERRIDE; | 97 virtual bool IsLoggedInAsStub() const OVERRIDE; |
99 virtual bool IsSessionStarted() const OVERRIDE; | 98 virtual bool IsSessionStarted() const OVERRIDE; |
100 virtual bool UserSessionsRestored() const OVERRIDE; | |
101 virtual bool IsUserNonCryptohomeDataEphemeral( | 99 virtual bool IsUserNonCryptohomeDataEphemeral( |
102 const std::string& email) const OVERRIDE; | 100 const std::string& email) const OVERRIDE; |
103 virtual void SetUserFlow(const std::string& email, UserFlow* flow) OVERRIDE {} | 101 virtual void SetUserFlow(const std::string& email, UserFlow* flow) OVERRIDE {} |
104 virtual UserFlow* GetCurrentUserFlow() const OVERRIDE; | 102 virtual UserFlow* GetCurrentUserFlow() const OVERRIDE; |
105 virtual UserFlow* GetUserFlow(const std::string& email) const OVERRIDE; | 103 virtual UserFlow* GetUserFlow(const std::string& email) const OVERRIDE; |
106 virtual void ResetUserFlow(const std::string& email) OVERRIDE {} | 104 virtual void ResetUserFlow(const std::string& email) OVERRIDE {} |
107 virtual void AddObserver(Observer* obs) OVERRIDE {} | 105 virtual void AddObserver(Observer* obs) OVERRIDE {} |
108 virtual void RemoveObserver(Observer* obs) OVERRIDE {} | 106 virtual void RemoveObserver(Observer* obs) OVERRIDE {} |
109 virtual void AddSessionStateObserver( | 107 virtual void AddSessionStateObserver( |
110 UserSessionStateObserver* obs) OVERRIDE {} | 108 UserSessionStateObserver* obs) OVERRIDE {} |
(...skipping 25 matching lines...) Expand all Loading... |
136 // active user. | 134 // active user. |
137 std::string active_user_id_; | 135 std::string active_user_id_; |
138 MultiProfileUserController* multi_profile_user_controller_; | 136 MultiProfileUserController* multi_profile_user_controller_; |
139 | 137 |
140 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 138 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
141 }; | 139 }; |
142 | 140 |
143 } // namespace chromeos | 141 } // namespace chromeos |
144 | 142 |
145 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ | 143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ |
OLD | NEW |