| 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 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 MOCK_CONST_METHOD0(HasBrowserRestarted, bool(void)); | 90 MOCK_CONST_METHOD0(HasBrowserRestarted, bool(void)); |
| 91 | 91 |
| 92 // UserManagerBase overrides: | 92 // UserManagerBase overrides: |
| 93 MOCK_CONST_METHOD0(AreEphemeralUsersEnabled, bool(void)); | 93 MOCK_CONST_METHOD0(AreEphemeralUsersEnabled, bool(void)); |
| 94 MOCK_CONST_METHOD0(GetApplicationLocale, const std::string&(void)); | 94 MOCK_CONST_METHOD0(GetApplicationLocale, const std::string&(void)); |
| 95 MOCK_CONST_METHOD0(GetLocalState, PrefService*(void)); | 95 MOCK_CONST_METHOD0(GetLocalState, PrefService*(void)); |
| 96 MOCK_CONST_METHOD2(HandleUserOAuthTokenStatusChange, | 96 MOCK_CONST_METHOD2(HandleUserOAuthTokenStatusChange, |
| 97 void(const AccountId&, | 97 void(const AccountId&, |
| 98 user_manager::User::OAuthTokenStatus status)); | 98 user_manager::User::OAuthTokenStatus status)); |
| 99 MOCK_CONST_METHOD0(IsEnterpriseManaged, bool(void)); | 99 MOCK_CONST_METHOD0(IsEnterpriseManaged, bool(void)); |
| 100 MOCK_METHOD1(LoadPublicAccounts, void(std::set<AccountId>*)); | 100 MOCK_METHOD1(LoadDeviceLocalAccounts, void(std::set<AccountId>*)); |
| 101 MOCK_METHOD0(PerformPreUserListLoadingActions, void(void)); | 101 MOCK_METHOD0(PerformPreUserListLoadingActions, void(void)); |
| 102 MOCK_METHOD0(PerformPostUserListLoadingActions, void(void)); | 102 MOCK_METHOD0(PerformPostUserListLoadingActions, void(void)); |
| 103 MOCK_METHOD1(PerformPostUserLoggedInActions, void(bool)); | 103 MOCK_METHOD1(PerformPostUserLoggedInActions, void(bool)); |
| 104 MOCK_CONST_METHOD1(IsDemoApp, bool(const AccountId&)); | 104 MOCK_CONST_METHOD1(IsDemoApp, bool(const AccountId&)); |
| 105 MOCK_CONST_METHOD1(IsKioskApp, bool(const AccountId&)); | 105 MOCK_CONST_METHOD1(IsKioskApp, bool(const AccountId&)); |
| 106 MOCK_CONST_METHOD1(IsPublicAccountMarkedForRemoval, bool(const AccountId&)); | 106 MOCK_CONST_METHOD1(IsDeviceLocalAccountMarkedForRemoval, |
| 107 bool(const AccountId&)); |
| 107 MOCK_METHOD0(DemoAccountLoggedIn, void(void)); | 108 MOCK_METHOD0(DemoAccountLoggedIn, void(void)); |
| 108 MOCK_METHOD1(KioskAppLoggedIn, void(const AccountId&)); | 109 MOCK_METHOD1(KioskAppLoggedIn, void(user_manager::User*)); |
| 109 MOCK_METHOD1(PublicAccountUserLoggedIn, void(user_manager::User*)); | 110 MOCK_METHOD1(PublicAccountUserLoggedIn, void(user_manager::User*)); |
| 110 MOCK_METHOD1(SupervisedUserLoggedIn, void(const AccountId&)); | 111 MOCK_METHOD1(SupervisedUserLoggedIn, void(const AccountId&)); |
| 111 MOCK_METHOD1(OnUserRemoved, void(const AccountId&)); | 112 MOCK_METHOD1(OnUserRemoved, void(const AccountId&)); |
| 112 MOCK_CONST_METHOD1(GetResourceImagekiaNamed, const gfx::ImageSkia&(int)); | 113 MOCK_CONST_METHOD1(GetResourceImagekiaNamed, const gfx::ImageSkia&(int)); |
| 113 MOCK_CONST_METHOD1(GetResourceStringUTF16, base::string16(int)); | 114 MOCK_CONST_METHOD1(GetResourceStringUTF16, base::string16(int)); |
| 114 MOCK_CONST_METHOD3(ScheduleResolveLocale, | 115 MOCK_CONST_METHOD3(ScheduleResolveLocale, |
| 115 void(const std::string&, | 116 void(const std::string&, |
| 116 const base::Closure&, | 117 const base::Closure&, |
| 117 std::string*)); | 118 std::string*)); |
| 118 MOCK_CONST_METHOD1(IsValidDefaultUserImageId, bool(int)); | 119 MOCK_CONST_METHOD1(IsValidDefaultUserImageId, bool(int)); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 user_manager::UserList user_list_; | 175 user_manager::UserList user_list_; |
| 175 // TODO (alemate): remove temporary_owner_account_id_ as soon as | 176 // TODO (alemate): remove temporary_owner_account_id_ as soon as |
| 176 // User::GetAccountId will | 177 // User::GetAccountId will |
| 177 // return constant reference. crbug.com/546863 | 178 // return constant reference. crbug.com/546863 |
| 178 mutable AccountId temporary_owner_account_id_ = EmptyAccountId(); | 179 mutable AccountId temporary_owner_account_id_ = EmptyAccountId(); |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace chromeos | 182 } // namespace chromeos |
| 182 | 183 |
| 183 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ | 184 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ |
| OLD | NEW |