Chromium Code Reviews| Index: chrome/browser/signin/fake_profile_oauth2_token_service.h |
| diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service.h b/chrome/browser/signin/fake_profile_oauth2_token_service.h |
| index 3a3523085ce31847da48ee26ad5650c7077e3ce8..e0eccee831149c189c6a02dedc9ffd2cef7b59e9 100644 |
| --- a/chrome/browser/signin/fake_profile_oauth2_token_service.h |
| +++ b/chrome/browser/signin/fake_profile_oauth2_token_service.h |
| @@ -13,6 +13,8 @@ |
| #if defined(OS_ANDROID) |
| #include "chrome/browser/signin/android_profile_oauth2_token_service.h" |
| +#elif defined(OS_IOS) |
| +#include "components/signin/ios/browser/profile_oauth2_token_service_ios.h" |
| #else |
| #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| #endif |
| @@ -40,6 +42,8 @@ |
| class FakeProfileOAuth2TokenService |
| #if defined(OS_ANDROID) |
| : public AndroidProfileOAuth2TokenService { |
| +#elif defined(OS_IOS) |
| + : public ProfileOAuth2TokenServiceIOS { |
| #else |
| : public ProfileOAuth2TokenService { |
| #endif |
| @@ -135,6 +139,11 @@ class FakeProfileOAuth2TokenService |
| virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| +#if defined(OS_IOS) |
| + virtual void AddOrUpdateAccount(const std::string& account_id) OVERRIDE; |
| + virtual void RemoveAccount(const std::string& account_id) OVERRIDE; |
| +#endif |
|
Roger Tawa OOO till Jul 10th
2014/08/20 15:43:57
Don't you need to define these functions in the cc
|
| + |
| private: |
| // Helper function to complete pending requests - if |all_scopes| is true, |
| // then all pending requests are completed, otherwise, only those requests |