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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual UserImageManager* GetUserImageManager( | 42 virtual UserImageManager* GetUserImageManager( |
43 const std::string& user_id) OVERRIDE; | 43 const std::string& user_id) OVERRIDE; |
44 virtual SupervisedUserManager* GetSupervisedUserManager() OVERRIDE; | 44 virtual SupervisedUserManager* GetSupervisedUserManager() OVERRIDE; |
45 virtual void SetUserFlow(const std::string& email, UserFlow* flow) OVERRIDE {} | 45 virtual void SetUserFlow(const std::string& email, UserFlow* flow) OVERRIDE {} |
46 virtual UserFlow* GetCurrentUserFlow() const OVERRIDE; | 46 virtual UserFlow* GetCurrentUserFlow() const OVERRIDE; |
47 virtual UserFlow* GetUserFlow(const std::string& email) const OVERRIDE; | 47 virtual UserFlow* GetUserFlow(const std::string& email) const OVERRIDE; |
48 virtual void ResetUserFlow(const std::string& email) OVERRIDE {} | 48 virtual void ResetUserFlow(const std::string& email) OVERRIDE {} |
49 | 49 |
50 // UserManager overrides. | 50 // UserManager overrides. |
51 virtual const user_manager::UserList& GetUsers() const OVERRIDE; | 51 virtual const user_manager::UserList& GetUsers() const OVERRIDE; |
52 virtual user_manager::UserList GetUsersAdmittedForMultiProfile() | 52 virtual user_manager::UserList GetUsersAllowedForMultiProfile() |
53 const OVERRIDE; | 53 const OVERRIDE; |
54 virtual const user_manager::UserList& GetLoggedInUsers() const OVERRIDE; | 54 virtual const user_manager::UserList& GetLoggedInUsers() const OVERRIDE; |
55 | 55 |
56 // Set the user as logged in. | 56 // Set the user as logged in. |
57 virtual void UserLoggedIn(const std::string& email, | 57 virtual void UserLoggedIn(const std::string& email, |
58 const std::string& username_hash, | 58 const std::string& username_hash, |
59 bool browser_restart) OVERRIDE; | 59 bool browser_restart) OVERRIDE; |
60 | 60 |
61 virtual const user_manager::User* GetActiveUser() const OVERRIDE; | 61 virtual const user_manager::User* GetActiveUser() const OVERRIDE; |
62 virtual user_manager::User* GetActiveUser() OVERRIDE; | 62 virtual user_manager::User* GetActiveUser() OVERRIDE; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // active user. | 166 // active user. |
167 std::string active_user_id_; | 167 std::string active_user_id_; |
168 MultiProfileUserController* multi_profile_user_controller_; | 168 MultiProfileUserController* multi_profile_user_controller_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 170 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
171 }; | 171 }; |
172 | 172 |
173 } // namespace chromeos | 173 } // namespace chromeos |
174 | 174 |
175 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ | 175 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ |
OLD | NEW |