OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FAKE_CHROME_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 UserFlow* GetUserFlow(const AccountId& account_id) const override; | 55 UserFlow* GetUserFlow(const AccountId& account_id) const override; |
56 void ResetUserFlow(const AccountId& account_id) override; | 56 void ResetUserFlow(const AccountId& account_id) override; |
57 user_manager::UserList GetUsersAllowedForSupervisedUsersCreation() | 57 user_manager::UserList GetUsersAllowedForSupervisedUsersCreation() |
58 const override; | 58 const override; |
59 void SwitchActiveUser(const AccountId& account_id) override; | 59 void SwitchActiveUser(const AccountId& account_id) override; |
60 const AccountId& GetOwnerAccountId() const override; | 60 const AccountId& GetOwnerAccountId() const override; |
61 void SessionStarted() override; | 61 void SessionStarted() override; |
62 void RemoveUser(const AccountId& account_id, | 62 void RemoveUser(const AccountId& account_id, |
63 user_manager::RemoveUserDelegate* delegate) override; | 63 user_manager::RemoveUserDelegate* delegate) override; |
64 void RemoveUserFromList(const AccountId& account_id) override; | 64 void RemoveUserFromList(const AccountId& account_id) override; |
65 bool FindKnownUserPrefs(const AccountId& account_id, | |
66 const base::DictionaryValue** out_value) override; | |
67 void UpdateKnownUserPrefs(const AccountId& account_id, | |
68 const base::DictionaryValue& values, | |
69 bool clear) override; | |
70 | 65 |
71 void set_owner_id(const AccountId& owner_account_id) { | 66 void set_owner_id(const AccountId& owner_account_id) { |
72 owner_account_id_ = owner_account_id; | 67 owner_account_id_ = owner_account_id; |
73 } | 68 } |
74 | 69 |
75 void set_bootstrap_manager(BootstrapManager* bootstrap_manager) { | 70 void set_bootstrap_manager(BootstrapManager* bootstrap_manager) { |
76 bootstrap_manager_ = bootstrap_manager; | 71 bootstrap_manager_ = bootstrap_manager; |
77 } | 72 } |
78 | 73 |
79 void set_multi_profile_user_controller( | 74 void set_multi_profile_user_controller( |
(...skipping 19 matching lines...) Expand all Loading... |
99 // Specific flows by user e-mail. | 94 // Specific flows by user e-mail. |
100 // Keys should be canonicalized before access. | 95 // Keys should be canonicalized before access. |
101 FlowMap specific_flows_; | 96 FlowMap specific_flows_; |
102 | 97 |
103 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); | 98 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); |
104 }; | 99 }; |
105 | 100 |
106 } // namespace chromeos | 101 } // namespace chromeos |
107 | 102 |
108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ | 103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
OLD | NEW |