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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h"
11 FakeSupervisedUserManager::FakeSupervisedUserManager() {}
13 FakeSupervisedUserManager::~FakeSupervisedUserManager() {
16 bool FakeSupervisedUserManager::HasSupervisedUsers(
17 const std::string
& manager_id
) const {
21 const user_manager::User
* FakeSupervisedUserManager::CreateUserRecord(
22 const std::string
& manager_id
,
23 const std::string
& local_user_id
,
24 const std::string
& sync_user_id
,
25 const base::string16
& display_name
) {
29 std::string
FakeSupervisedUserManager::GenerateUserId() {
33 const user_manager::User
* FakeSupervisedUserManager::FindByDisplayName(
34 const base::string16
& display_name
) const {
38 const user_manager::User
* FakeSupervisedUserManager::FindBySyncId(
39 const std::string
& sync_id
) const {
43 std::string
FakeSupervisedUserManager::GetUserSyncId(
44 const std::string
& supervised_user_id
) const {
48 base::string16
FakeSupervisedUserManager::GetManagerDisplayName(
49 const std::string
& supervised_user_id
) const {
50 return base::string16();
53 std::string
FakeSupervisedUserManager::GetManagerUserId(
54 const std::string
& supervised_user_id
) const {
58 std::string
FakeSupervisedUserManager::GetManagerDisplayEmail(
59 const std::string
& supervised_user_id
) const {
63 SupervisedUserAuthentication
* FakeSupervisedUserManager::GetAuthentication() {
67 void FakeSupervisedUserManager::LoadSupervisedUserToken(
69 const LoadTokenCallback
& callback
) {
70 callback
.Run("token");
73 } // namespace chromeos