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 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" | 5 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h" | 7 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h" |
8 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 8 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
9 #include "components/user_manager/user_image/user_image.h" | 9 #include "components/user_manager/user_image/user_image.h" |
10 #include "components/user_manager/user_type.h" | 10 #include "components/user_manager/user_type.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 SupervisedUserManager* FakeUserManager::GetSupervisedUserManager() { | 171 SupervisedUserManager* FakeUserManager::GetSupervisedUserManager() { |
172 return supervised_user_manager_.get(); | 172 return supervised_user_manager_.get(); |
173 } | 173 } |
174 | 174 |
175 UserImageManager* FakeUserManager::GetUserImageManager( | 175 UserImageManager* FakeUserManager::GetUserImageManager( |
176 const std::string& /* user_id */) { | 176 const std::string& /* user_id */) { |
177 return NULL; | 177 return NULL; |
178 } | 178 } |
179 | 179 |
180 const user_manager::UserList& FakeUserManager::GetLRULoggedInUsers() { | 180 const user_manager::UserList& FakeUserManager::GetLRULoggedInUsers() const { |
181 return user_list_; | 181 return user_list_; |
182 } | 182 } |
183 | 183 |
184 user_manager::UserList FakeUserManager::GetUnlockUsers() const { | 184 user_manager::UserList FakeUserManager::GetUnlockUsers() const { |
185 return user_list_; | 185 return user_list_; |
186 } | 186 } |
187 | 187 |
188 const std::string& FakeUserManager::GetOwnerEmail() { | 188 const std::string& FakeUserManager::GetOwnerEmail() const { |
189 return owner_email_; | 189 return owner_email_; |
190 } | 190 } |
191 | 191 |
192 bool FakeUserManager::IsKnownUser(const std::string& email) const { | 192 bool FakeUserManager::IsKnownUser(const std::string& email) const { |
193 return true; | 193 return true; |
194 } | 194 } |
195 | 195 |
196 const user_manager::User* FakeUserManager::FindUser( | 196 const user_manager::User* FakeUserManager::FindUser( |
197 const std::string& email) const { | 197 const std::string& email) const { |
198 const user_manager::UserList& users = GetUsers(); | 198 const user_manager::UserList& users = GetUsers(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { | 299 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { |
300 return NULL; | 300 return NULL; |
301 } | 301 } |
302 | 302 |
303 bool FakeUserManager::AreSupervisedUsersAllowed() const { | 303 bool FakeUserManager::AreSupervisedUsersAllowed() const { |
304 return true; | 304 return true; |
305 } | 305 } |
306 | 306 |
307 } // namespace chromeos | 307 } // namespace chromeos |
OLD | NEW |