blob: b045b77305d96fdef2fcf912fb477d8101e7e1c3 [file] [log] [blame]
[email protected]72921622013-07-17 17:22:481// 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
7namespace google_apis {
8
9DummyAuthService::DummyAuthService() : dummy_token("testtoken") {
10}
11
12void DummyAuthService::AddObserver(AuthServiceObserver* observer) {
13}
14
15void DummyAuthService::RemoveObserver(AuthServiceObserver* observer) {
16}
17
18void DummyAuthService::StartAuthentication(const AuthStatusCallback& callback) {
19}
20
21bool DummyAuthService::HasAccessToken() const {
22 return true;
23}
24
25bool DummyAuthService::HasRefreshToken() const {
26 return true;
27}
28
29const std::string& DummyAuthService::access_token() const {
30 return dummy_token;
31}
32
33void DummyAuthService::ClearAccessToken() {
34}
35
36void DummyAuthService::ClearRefreshToken() {
37}
38
39} // namespace google_apis