Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/browser/chromeos/login/users/mock_user_manager.h

Issue 907323002: Implemented DeviceStatusCollector::GetDeviceSessionStatus() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/mock_user_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual UserFlow* GetUserFlow(const std::string&) const override; 118 virtual UserFlow* GetUserFlow(const std::string&) const override;
119 119
120 // Sets a new User instance. Users previously created by this MockUserManager 120 // Sets a new User instance. Users previously created by this MockUserManager
121 // become invalid. 121 // become invalid.
122 void SetActiveUser(const std::string& email); 122 void SetActiveUser(const std::string& email);
123 123
124 // Creates a new public session user. Users previously created by this 124 // Creates a new public session user. Users previously created by this
125 // MockUserManager become invalid. 125 // MockUserManager become invalid.
126 user_manager::User* CreatePublicAccountUser(const std::string& email); 126 user_manager::User* CreatePublicAccountUser(const std::string& email);
127 127
128 // Creates a new kiosk app user. Users previously created by this
129 // MockUserManager become invalid.
130 user_manager::User* CreateKioskAppUser(const std::string& user_id);
131
128 // Adds a new User instance to the back of the user list. Users previously 132 // Adds a new User instance to the back of the user list. Users previously
129 // created by this MockUserManager remain valid. 133 // created by this MockUserManager remain valid.
130 void AddUser(const std::string& email); 134 void AddUser(const std::string& email);
131 135
132 // Clears the user list and the active user. Users previously created by this 136 // Clears the user list and the active user. Users previously created by this
133 // MockUserManager become invalid. 137 // MockUserManager become invalid.
134 void ClearUserList(); 138 void ClearUserList();
135 139
136 scoped_ptr<UserFlow> user_flow_; 140 scoped_ptr<UserFlow> user_flow_;
137 scoped_ptr<MockUserImageManager> user_image_manager_; 141 scoped_ptr<MockUserImageManager> user_image_manager_;
138 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_; 142 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_;
139 user_manager::UserList user_list_; 143 user_manager::UserList user_list_;
140 }; 144 };
141 145
142 } // namespace chromeos 146 } // namespace chromeos
143 147
144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ 148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/mock_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698