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

Side by Side Diff: google_apis/drive/dummy_auth_service.h

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | « google_apis/drive/drive_entry_kinds.h ('k') | google_apis/drive/dummy_auth_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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_GOOGLE_APIS_DUMMY_AUTH_SERVICE_H_ 5 #ifndef GOOGLE_APIS_DRIVE_DUMMY_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DUMMY_AUTH_SERVICE_H_ 6 #define GOOGLE_APIS_DRIVE_DUMMY_AUTH_SERVICE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/google_apis/auth_service_interface.h" 9 #include "google_apis/drive/auth_service_interface.h"
10 10
11 namespace google_apis { 11 namespace google_apis {
12 12
13 // Dummy implementation of AuthServiceInterface that always return a dummy 13 // Dummy implementation of AuthServiceInterface that always return a dummy
14 // access token. 14 // access token.
15 class DummyAuthService : public AuthServiceInterface { 15 class DummyAuthService : public AuthServiceInterface {
16 public: 16 public:
17 // The constructor presets non-empty tokens. When a test for checking auth 17 // The constructor presets non-empty tokens. When a test for checking auth
18 // failure case (i.e., empty tokens) is needed, explicitly clear them by the 18 // failure case (i.e., empty tokens) is needed, explicitly clear them by the
19 // Clear{Access, Refresh}Token methods. 19 // Clear{Access, Refresh}Token methods.
(...skipping 13 matching lines...) Expand all
33 virtual void ClearAccessToken() OVERRIDE; 33 virtual void ClearAccessToken() OVERRIDE;
34 virtual void ClearRefreshToken() OVERRIDE; 34 virtual void ClearRefreshToken() OVERRIDE;
35 35
36 private: 36 private:
37 std::string access_token_; 37 std::string access_token_;
38 std::string refresh_token_; 38 std::string refresh_token_;
39 }; 39 };
40 40
41 } // namespace google_apis 41 } // namespace google_apis
42 42
43 #endif // CHROME_BROWSER_GOOGLE_APIS_DUMMY_AUTH_SERVICE_H_ 43 #endif // GOOGLE_APIS_DRIVE_DUMMY_AUTH_SERVICE_H_
OLDNEW
« no previous file with comments | « google_apis/drive/drive_entry_kinds.h ('k') | google_apis/drive/dummy_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698