1 // Copyright 2014 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_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_
6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_
10 #include "base/macros.h"
12 #if defined(OS_CHROMEOS)
13 #include "components/signin/core/browser/signin_manager_base.h"
15 #include "base/compiler_specific.h"
16 #include "components/signin/core/browser/signin_manager.h"
28 #if defined(OS_CHROMEOS)
29 class FakeSigninManager : public SigninManagerBase {
31 class FakeSigninManager : public SigninManager {
34 explicit FakeSigninManager(Profile* profile);
35 virtual ~FakeSigninManager();
37 void SignIn(const std::string& username);
38 #if defined(OS_CHROMEOS)
41 virtual void SignOut() OVERRIDE;
44 static KeyedService* Build(content::BrowserContext* context);
49 DISALLOW_COPY_AND_ASSIGN(FakeSigninManager);
54 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_