| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SIGNIN_FAKE_SIGNIN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ | 6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void set_password(const std::string& password) { password_ = password; } | 51 void set_password(const std::string& password) { password_ = password; } |
| 52 | 52 |
| 53 void SignIn(const std::string& username, const std::string& password); | 53 void SignIn(const std::string& username, const std::string& password); |
| 54 | 54 |
| 55 void FailSignin(const GoogleServiceAuthError& error); | 55 void FailSignin(const GoogleServiceAuthError& error); |
| 56 | 56 |
| 57 virtual void StartSignInWithRefreshToken( | 57 virtual void StartSignInWithRefreshToken( |
| 58 const std::string& refresh_token, | 58 const std::string& refresh_token, |
| 59 const std::string& username, | 59 const std::string& username, |
| 60 const std::string& password, | 60 const std::string& password, |
| 61 const OAuthTokenFetchedCallback& oauth_fetched_callback) OVERRIDE; | 61 const OAuthTokenFetchedCallback& oauth_fetched_callback) override; |
| 62 | 62 |
| 63 virtual void SignOut(signin_metrics::ProfileSignout signout_source_metric) | 63 virtual void SignOut(signin_metrics::ProfileSignout signout_source_metric) |
| 64 OVERRIDE; | 64 override; |
| 65 | 65 |
| 66 virtual void CompletePendingSignin() OVERRIDE; | 66 virtual void CompletePendingSignin() override; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // !defined (OS_CHROMEOS) | 69 #endif // !defined (OS_CHROMEOS) |
| 70 | 70 |
| 71 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
| 72 typedef FakeSigninManagerBase FakeSigninManagerForTesting; | 72 typedef FakeSigninManagerBase FakeSigninManagerForTesting; |
| 73 #else | 73 #else |
| 74 typedef FakeSigninManager FakeSigninManagerForTesting; | 74 typedef FakeSigninManager FakeSigninManagerForTesting; |
| 75 #endif | 75 #endif |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ | 77 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
| OLD | NEW |