[email protected] | 7292162 | 2013-07-17 17:22:48 | [diff] [blame^] | 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 |