| 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_MOCK_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/chromeos/login/user_flow.h" | 13 #include "chrome/browser/chromeos/login/user_flow.h" |
| 13 #include "chrome/browser/chromeos/login/users/avatar/mock_user_image_manager.h" | 14 #include "chrome/browser/chromeos/login/users/avatar/mock_user_image_manager.h" |
| 14 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 15 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 15 #include "components/user_manager/user.h" | 16 #include "components/user_manager/user.h" |
| 16 #include "components/user_manager/user_image/user_image.h" | 17 #include "components/user_manager/user_image/user_image.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 18 | 19 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void AddUser(const std::string& email); | 133 void AddUser(const std::string& email); |
| 133 | 134 |
| 134 // Clears the user list and the active user. Users previously created by this | 135 // Clears the user list and the active user. Users previously created by this |
| 135 // MockUserManager become invalid. | 136 // MockUserManager become invalid. |
| 136 void ClearUserList(); | 137 void ClearUserList(); |
| 137 | 138 |
| 138 scoped_ptr<UserFlow> user_flow_; | 139 scoped_ptr<UserFlow> user_flow_; |
| 139 scoped_ptr<MockUserImageManager> user_image_manager_; | 140 scoped_ptr<MockUserImageManager> user_image_manager_; |
| 140 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_; | 141 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_; |
| 141 user_manager::UserList user_list_; | 142 user_manager::UserList user_list_; |
| 143 std::vector<TestingProfile*> profile_list_; |
| 142 }; | 144 }; |
| 143 | 145 |
| 144 } // namespace chromeos | 146 } // namespace chromeos |
| 145 | 147 |
| 146 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ | 148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ |
| OLD | NEW |