| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FAKE_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual const User* FindUser(const std::string& email) const OVERRIDE; | 73 virtual const User* FindUser(const std::string& email) const OVERRIDE; |
| 74 virtual User* FindUserAndModify(const std::string& email) OVERRIDE; | 74 virtual User* FindUserAndModify(const std::string& email) OVERRIDE; |
| 75 virtual const User* GetLoggedInUser() const OVERRIDE; | 75 virtual const User* GetLoggedInUser() const OVERRIDE; |
| 76 virtual User* GetLoggedInUser() OVERRIDE; | 76 virtual User* GetLoggedInUser() OVERRIDE; |
| 77 virtual const User* GetPrimaryUser() const OVERRIDE; | 77 virtual const User* GetPrimaryUser() const OVERRIDE; |
| 78 virtual Profile* GetProfileByUser(const User* profile) const OVERRIDE; | 78 virtual Profile* GetProfileByUser(const User* profile) const OVERRIDE; |
| 79 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE; | 79 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE; |
| 80 virtual void SaveUserOAuthStatus( | 80 virtual void SaveUserOAuthStatus( |
| 81 const std::string& username, | 81 const std::string& username, |
| 82 User::OAuthTokenStatus oauth_token_status) OVERRIDE {} | 82 User::OAuthTokenStatus oauth_token_status) OVERRIDE {} |
| 83 virtual void SaveForceOnlineSignin(const std::string& user_id, |
| 84 bool force_online_signin) OVERRIDE {} |
| 83 virtual base::string16 GetUserDisplayName( | 85 virtual base::string16 GetUserDisplayName( |
| 84 const std::string& username) const OVERRIDE; | 86 const std::string& username) const OVERRIDE; |
| 85 virtual void SaveUserDisplayEmail(const std::string& username, | 87 virtual void SaveUserDisplayEmail(const std::string& username, |
| 86 const std::string& display_email) OVERRIDE {} | 88 const std::string& display_email) OVERRIDE {} |
| 87 virtual std::string GetUserDisplayEmail( | 89 virtual std::string GetUserDisplayEmail( |
| 88 const std::string& username) const OVERRIDE; | 90 const std::string& username) const OVERRIDE; |
| 89 virtual bool IsCurrentUserOwner() const OVERRIDE; | 91 virtual bool IsCurrentUserOwner() const OVERRIDE; |
| 90 virtual bool IsCurrentUserNew() const OVERRIDE; | 92 virtual bool IsCurrentUserNew() const OVERRIDE; |
| 91 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE; | 93 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE; |
| 92 virtual bool CanCurrentUserLock() const OVERRIDE; | 94 virtual bool CanCurrentUserLock() const OVERRIDE; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // If set this is the active user. If empty, the first created user is the | 148 // If set this is the active user. If empty, the first created user is the |
| 147 // active user. | 149 // active user. |
| 148 std::string active_user_id_; | 150 std::string active_user_id_; |
| 149 | 151 |
| 150 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 152 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
| 151 }; | 153 }; |
| 152 | 154 |
| 153 } // namespace chromeos | 155 } // namespace chromeos |
| 154 | 156 |
| 155 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ | 157 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ |
| OLD | NEW |