blob: e1b6891f969674523439e7ea918a37642de0c12a [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
[email protected]e196bef32013-12-03 05:33:135#include "google_apis/drive/dummy_auth_service.h"
[email protected]72921622013-07-17 17:22:486
7namespace google_apis {
8
[email protected]fedaeae2013-10-11 08:35:549DummyAuthService::DummyAuthService() {
10 set_access_token("dummy");
11 set_refresh_token("dummy");
[email protected]72921622013-07-17 17:22:4812}
13
14void DummyAuthService::AddObserver(AuthServiceObserver* observer) {
15}
16
17void DummyAuthService::RemoveObserver(AuthServiceObserver* observer) {
18}
19
20void DummyAuthService::StartAuthentication(const AuthStatusCallback& callback) {
21}
22
23bool DummyAuthService::HasAccessToken() const {
[email protected]fedaeae2013-10-11 08:35:5424 return !access_token_.empty();
[email protected]72921622013-07-17 17:22:4825}
26
27bool DummyAuthService::HasRefreshToken() const {
[email protected]fedaeae2013-10-11 08:35:5428 return !refresh_token_.empty();
[email protected]72921622013-07-17 17:22:4829}
30
31const std::string& DummyAuthService::access_token() const {
[email protected]fedaeae2013-10-11 08:35:5432 return access_token_;
[email protected]72921622013-07-17 17:22:4833}
34
35void DummyAuthService::ClearAccessToken() {
[email protected]fedaeae2013-10-11 08:35:5436 access_token_.clear();
[email protected]72921622013-07-17 17:22:4837}
38
39void DummyAuthService::ClearRefreshToken() {
[email protected]fedaeae2013-10-11 08:35:5440 refresh_token_.clear();
[email protected]72921622013-07-17 17:22:4841}
42
43} // namespace google_apis