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.
5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DUMMY_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DUMMY_AUTH_SERVICE_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/google_apis/auth_service_interface.h"
11 namespace google_apis
{
13 // Dummy implementation of AuthServiceInterface that always return a dummy
15 class DummyAuthService
: public AuthServiceInterface
{
19 // AuthServiceInterface overrides.
20 virtual void AddObserver(AuthServiceObserver
* observer
) OVERRIDE
;
21 virtual void RemoveObserver(AuthServiceObserver
* observer
) OVERRIDE
;
22 virtual void StartAuthentication(const AuthStatusCallback
& callback
) OVERRIDE
;
23 virtual bool HasAccessToken() const OVERRIDE
;
24 virtual bool HasRefreshToken() const OVERRIDE
;
25 virtual const std::string
& access_token() const OVERRIDE
;
26 virtual void ClearAccessToken() OVERRIDE
;
27 virtual void ClearRefreshToken() OVERRIDE
;
30 const std::string dummy_token
;
33 } // namespace google_apis
35 #endif // CHROME_BROWSER_GOOGLE_APIS_DUMMY_AUTH_SERVICE_H_