| 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 cd5bc8b493e4e77ea65c31e015090e0a8709ef36..ab5cf62cea692d5f9cfa525c114cb81f74b96e9d 100644
|
| --- a/chrome/browser/signin/fake_profile_oauth2_token_service.h
|
| +++ b/chrome/browser/signin/fake_profile_oauth2_token_service.h
|
| @@ -43,6 +43,7 @@ class FakeProfileOAuth2TokenService : public ProfileOAuth2TokenService {
|
| PendingRequest();
|
| ~PendingRequest();
|
|
|
| + std::string account_id;
|
| std::string client_id;
|
| std::string client_secret;
|
| ScopeSet scopes;
|
| @@ -74,6 +75,7 @@ class FakeProfileOAuth2TokenService : public ProfileOAuth2TokenService {
|
|
|
| void IssueErrorForAllPendingRequests(const GoogleServiceAuthError& error);
|
|
|
| + virtual void Initialize(Profile* profile) OVERRIDE;
|
| virtual void Shutdown() OVERRIDE;
|
|
|
| // Helper function to be used with
|
| @@ -83,12 +85,13 @@ class FakeProfileOAuth2TokenService : public ProfileOAuth2TokenService {
|
| protected:
|
| // OAuth2TokenService overrides.
|
| virtual void FetchOAuth2Token(RequestImpl* request,
|
| + const std::string& account_id,
|
| net::URLRequestContextGetter* getter,
|
| const std::string& client_id,
|
| const std::string& client_secret,
|
| const ScopeSet& scopes) OVERRIDE;
|
|
|
| - virtual std::string GetRefreshToken() OVERRIDE;
|
| + virtual std::string GetRefreshToken(const std::string& account_id) OVERRIDE;
|
|
|
| virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
|
|
|
| @@ -104,6 +107,7 @@ class FakeProfileOAuth2TokenService : public ProfileOAuth2TokenService {
|
|
|
| std::vector<PendingRequest> pending_requests_;
|
| std::string refresh_token_;
|
| + bool is_initialized_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(FakeProfileOAuth2TokenService);
|
| };
|
|
|