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

Side by Side Diff: chrome/browser/google_apis/dummy_auth_service.cc

Issue 19511002: Change google_api::RequestSender to take an AuthService instead of a Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/google_apis/dummy_auth_service.h"
6
7 namespace google_apis {
8
9 DummyAuthService::DummyAuthService() : dummy_token("testtoken") {
10 }
11
12 void DummyAuthService::AddObserver(AuthServiceObserver* observer) {
13 }
14
15 void DummyAuthService::RemoveObserver(AuthServiceObserver* observer) {
16 }
17
18 void DummyAuthService::StartAuthentication(const AuthStatusCallback& callback) {
19 }
20
21 bool DummyAuthService::HasAccessToken() const {
22 return true;
23 }
24
25 bool DummyAuthService::HasRefreshToken() const {
26 return true;
27 }
28
29 const std::string& DummyAuthService::access_token() const {
30 return dummy_token;
31 }
32
33 void DummyAuthService::ClearAccessToken() {
34 }
35
36 void DummyAuthService::ClearRefreshToken() {
37 }
38
39 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/dummy_auth_service.h ('k') | chrome/browser/google_apis/gdata_wapi_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698