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 COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 void LoadDeviceLocalAccounts( | 127 void LoadDeviceLocalAccounts( |
128 std::set<AccountId>* device_local_accounts_set) override {} | 128 std::set<AccountId>* device_local_accounts_set) override {} |
129 void PerformPreUserListLoadingActions() override {} | 129 void PerformPreUserListLoadingActions() override {} |
130 void PerformPostUserListLoadingActions() override {} | 130 void PerformPostUserListLoadingActions() override {} |
131 void PerformPostUserLoggedInActions(bool browser_restart) override {} | 131 void PerformPostUserLoggedInActions(bool browser_restart) override {} |
132 bool IsDemoApp(const AccountId& account_id) const override; | 132 bool IsDemoApp(const AccountId& account_id) const override; |
133 bool IsDeviceLocalAccountMarkedForRemoval( | 133 bool IsDeviceLocalAccountMarkedForRemoval( |
134 const AccountId& account_id) const override; | 134 const AccountId& account_id) const override; |
135 void DemoAccountLoggedIn() override {} | 135 void DemoAccountLoggedIn() override {} |
136 void KioskAppLoggedIn(user_manager::User* user) override {} | 136 void KioskAppLoggedIn(user_manager::User* user) override {} |
| 137 void ArcKioskAppLoggedIn(user_manager::User* user) override {} |
137 void PublicAccountUserLoggedIn(user_manager::User* user) override {} | 138 void PublicAccountUserLoggedIn(user_manager::User* user) override {} |
138 void SupervisedUserLoggedIn(const AccountId& account_id) override {} | 139 void SupervisedUserLoggedIn(const AccountId& account_id) override {} |
139 void OnUserRemoved(const AccountId& account_id) override {} | 140 void OnUserRemoved(const AccountId& account_id) override {} |
140 | 141 |
141 protected: | 142 protected: |
142 user_manager::User* primary_user_; | 143 user_manager::User* primary_user_; |
143 | 144 |
144 // If set this is the active user. If empty, the first created user is the | 145 // If set this is the active user. If empty, the first created user is the |
145 // active user. | 146 // active user. |
146 AccountId active_account_id_ = EmptyAccountId(); | 147 AccountId active_account_id_ = EmptyAccountId(); |
147 | 148 |
148 private: | 149 private: |
149 // We use this internal function for const-correctness. | 150 // We use this internal function for const-correctness. |
150 user_manager::User* GetActiveUserInternal() const; | 151 user_manager::User* GetActiveUserInternal() const; |
151 | 152 |
152 // stub, always empty. | 153 // stub, always empty. |
153 AccountId owner_account_id_ = EmptyAccountId(); | 154 AccountId owner_account_id_ = EmptyAccountId(); |
154 | 155 |
155 // stub. Always empty. | 156 // stub. Always empty. |
156 gfx::ImageSkia empty_image_; | 157 gfx::ImageSkia empty_image_; |
157 | 158 |
158 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 159 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
159 }; | 160 }; |
160 | 161 |
161 } // namespace user_manager | 162 } // namespace user_manager |
162 | 163 |
163 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 164 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
OLD | NEW |