Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: google_apis/gaia/fake_oauth2_token_service.h

Issue 136723009: Move UbertokenFetcher from //chrome to //google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | google_apis/gaia/fake_oauth2_token_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_
6 #define GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "google_apis/gaia/oauth2_token_service.h"
12
13 namespace net {
14 class URLRequestContextGetter;
15 }
16
17 // Do-nothing implementation of OAuth2TokenService.
18 class FakeOAuth2TokenService : public OAuth2TokenService {
19 public:
20 FakeOAuth2TokenService();
21 virtual ~FakeOAuth2TokenService();
22
23 protected:
24 // OAuth2TokenService overrides.
25 virtual void FetchOAuth2Token(RequestImpl* request,
26 const std::string& account_id,
27 net::URLRequestContextGetter* getter,
28 const std::string& client_id,
29 const std::string& client_secret,
30 const ScopeSet& scopes) OVERRIDE;
31
32 virtual void InvalidateOAuth2Token(const std::string& account_id,
33 const std::string& client_id,
34 const ScopeSet& scopes,
35 const std::string& access_token) OVERRIDE;
36
37 virtual std::string GetRefreshToken(const std::string& account_id) OVERRIDE;
38
39 private:
40 // OAuth2TokenService overrides.
41 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
42
43 DISALLOW_COPY_AND_ASSIGN(FakeOAuth2TokenService);
44 };
45
46 #endif // GOOGLE_APIS_GAIA_FAKE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | google_apis/gaia/fake_oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698