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"
11 #include "components/signin/core/browser/signin_metrics.h"
13 #if defined(OS_CHROMEOS)
14 #include "components/signin/core/browser/signin_manager_base.h"
16 #include "base/compiler_specific.h"
17 #include "components/signin/core/browser/signin_manager.h"
29 #if defined(OS_CHROMEOS)
30 class FakeSigninManager : public SigninManagerBase {
32 class FakeSigninManager : public SigninManager {
35 explicit FakeSigninManager(Profile* profile);
36 ~FakeSigninManager() override;
38 void SignIn(const std::string& username);
39 #if defined(OS_CHROMEOS)
40 void SignOut(signin_metrics::ProfileSignout signout_source_metric);
42 void SignOut(signin_metrics::ProfileSignout signout_source_metric) override;
45 static KeyedService* Build(content::BrowserContext* context);
50 DISALLOW_COPY_AND_ASSIGN(FakeSigninManager);
55 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_