| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ | 5 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ |
| 6 #define COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ | 6 #define COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELE
GATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
| 10 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" | 10 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" |
| 11 | 11 |
| 12 class FakeProfileOAuth2TokenServiceIOSDelegate | 12 class FakeProfileOAuth2TokenServiceIOSDelegate |
| 13 : public ProfileOAuth2TokenServiceIOSDelegate { | 13 : public ProfileOAuth2TokenServiceIOSDelegate { |
| 14 public: | 14 public: |
| 15 FakeProfileOAuth2TokenServiceIOSDelegate( | 15 FakeProfileOAuth2TokenServiceIOSDelegate( |
| 16 SigninClient* client, | 16 SigninClient* client, |
| 17 ProfileOAuth2TokenServiceIOSProvider* provider, | 17 std::unique_ptr<ProfileOAuth2TokenServiceIOSProvider> provider, |
| 18 AccountTrackerService* account_tracker_service, | 18 AccountTrackerService* account_tracker_service, |
| 19 SigninErrorController* signin_error_controller); | 19 SigninErrorController* signin_error_controller); |
| 20 ~FakeProfileOAuth2TokenServiceIOSDelegate() override; | 20 ~FakeProfileOAuth2TokenServiceIOSDelegate() override; |
| 21 | 21 |
| 22 OAuth2AccessTokenFetcher* CreateAccessTokenFetcher( | 22 OAuth2AccessTokenFetcher* CreateAccessTokenFetcher( |
| 23 const std::string& account_id, | 23 const std::string& account_id, |
| 24 net::URLRequestContextGetter* getter, | 24 net::URLRequestContextGetter* getter, |
| 25 OAuth2AccessTokenConsumer* consumer) override; | 25 OAuth2AccessTokenConsumer* consumer) override; |
| 26 | 26 |
| 27 bool RefreshTokenIsAvailable(const std::string& account_id) const override; | 27 bool RefreshTokenIsAvailable(const std::string& account_id) const override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 52 | 52 |
| 53 // Maps account ids to their refresh token strings. | 53 // Maps account ids to their refresh token strings. |
| 54 std::map<std::string, std::string> refresh_tokens_; | 54 std::map<std::string, std::string> refresh_tokens_; |
| 55 // Maps account ids to their auth errors. | 55 // Maps account ids to their auth errors. |
| 56 std::map<std::string, GoogleServiceAuthError> auth_errors_; | 56 std::map<std::string, GoogleServiceAuthError> auth_errors_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(FakeProfileOAuth2TokenServiceIOSDelegate); | 58 DISALLOW_COPY_AND_ASSIGN(FakeProfileOAuth2TokenServiceIOSDelegate); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_D
ELEGATE_H_ | 61 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_D
ELEGATE_H_ |
| OLD | NEW |