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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 GetUsersAllowedForMultiProfile() | 52 virtual user_manager::UserList GetUsersAllowedForMultiProfile() |
53 const override; | 53 const override; |
| 54 virtual user_manager::UserList GetUsersAllowedForSupervisedUsersCreation() |
| 55 const override; |
54 virtual const user_manager::UserList& GetLoggedInUsers() const override; | 56 virtual const user_manager::UserList& GetLoggedInUsers() const override; |
55 | 57 |
56 // Set the user as logged in. | 58 // Set the user as logged in. |
57 virtual void UserLoggedIn(const std::string& email, | 59 virtual void UserLoggedIn(const std::string& email, |
58 const std::string& username_hash, | 60 const std::string& username_hash, |
59 bool browser_restart) override; | 61 bool browser_restart) override; |
60 | 62 |
61 virtual const user_manager::User* GetActiveUser() const override; | 63 virtual const user_manager::User* GetActiveUser() const override; |
62 virtual user_manager::User* GetActiveUser() override; | 64 virtual user_manager::User* GetActiveUser() override; |
63 virtual void SwitchActiveUser(const std::string& email) override; | 65 virtual void SwitchActiveUser(const std::string& email) override; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // active user. | 168 // active user. |
167 std::string active_user_id_; | 169 std::string active_user_id_; |
168 MultiProfileUserController* multi_profile_user_controller_; | 170 MultiProfileUserController* multi_profile_user_controller_; |
169 | 171 |
170 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 172 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
171 }; | 173 }; |
172 | 174 |
173 } // namespace chromeos | 175 } // namespace chromeos |
174 | 176 |
175 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ | 177 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_USER_MANAGER_H_ |
OLD | NEW |