OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_ | 5 #ifndef GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_ |
6 #define GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_ | 6 #define GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "google_apis/gaia/fake_oauth2_token_service_delegate.h" | 9 #include "google_apis/gaia/fake_oauth2_token_service_delegate.h" |
9 #include "google_apis/gaia/oauth2_token_service.h" | 10 #include "google_apis/gaia/oauth2_token_service.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 class URLRequestContextGetter; | 13 class URLRequestContextGetter; |
13 } | 14 } |
14 | 15 |
15 // Do-nothing implementation of OAuth2TokenService. | 16 // Do-nothing implementation of OAuth2TokenService. |
16 class FakeOAuth2TokenService : public OAuth2TokenService { | 17 class FakeOAuth2TokenService : public OAuth2TokenService { |
17 public: | 18 public: |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ScopeSet scopes; | 58 ScopeSet scopes; |
58 base::WeakPtr<RequestImpl> request; | 59 base::WeakPtr<RequestImpl> request; |
59 }; | 60 }; |
60 | 61 |
61 std::vector<PendingRequest> pending_requests_; | 62 std::vector<PendingRequest> pending_requests_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(FakeOAuth2TokenService); | 64 DISALLOW_COPY_AND_ASSIGN(FakeOAuth2TokenService); |
64 }; | 65 }; |
65 | 66 |
66 #endif // GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_ | 67 #endif // GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_ |
OLD | NEW |