| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CHROME_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // Fake chrome user manager with a barebones implementation. Users can be added | 24 // Fake chrome user manager with a barebones implementation. Users can be added |
| 25 // and set as logged in, and those users can be returned. | 25 // and set as logged in, and those users can be returned. |
| 26 class FakeChromeUserManager : public user_manager::FakeUserManager, | 26 class FakeChromeUserManager : public user_manager::FakeUserManager, |
| 27 public UserManagerInterface { | 27 public UserManagerInterface { |
| 28 public: | 28 public: |
| 29 FakeChromeUserManager(); | 29 FakeChromeUserManager(); |
| 30 ~FakeChromeUserManager() override; | 30 ~FakeChromeUserManager() override; |
| 31 | 31 |
| 32 // Create and add a kiosk app user. | 32 // Create and add a kiosk app user. |
| 33 void AddKioskAppUser(const AccountId& kiosk_app_account_id); | 33 user_manager::User* AddKioskAppUser(const AccountId& account_id); |
| 34 | 34 |
| 35 // Create and add a public account user. | 35 // Create and add a public account user. |
| 36 const user_manager::User* AddPublicAccountUser(const AccountId& account_id); | 36 const user_manager::User* AddPublicAccountUser(const AccountId& account_id); |
| 37 | 37 |
| 38 // Calculates the user name hash and calls UserLoggedIn to login a user. | 38 // Calculates the user name hash and calls UserLoggedIn to login a user. |
| 39 void LoginUser(const AccountId& account_id); | 39 void LoginUser(const AccountId& account_id); |
| 40 | 40 |
| 41 // UserManager overrides. | 41 // UserManager overrides. |
| 42 user_manager::UserList GetUsersAllowedForMultiProfile() const override; | 42 user_manager::UserList GetUsersAllowedForMultiProfile() const override; |
| 43 | 43 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // Specific flows by user e-mail. | 114 // Specific flows by user e-mail. |
| 115 // Keys should be canonicalized before access. | 115 // Keys should be canonicalized before access. |
| 116 FlowMap specific_flows_; | 116 FlowMap specific_flows_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); | 118 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace chromeos | 121 } // namespace chromeos |
| 122 | 122 |
| 123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ | 123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
| OLD | NEW |