1 // Copyright (c) 2012 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_SIGNIN_FAKE_SIGNIN_MANAGER_BUILDER_H_
6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_BUILDER_H_
10 #include "base/memory/scoped_ptr.h"
12 #include "components/signin/core/browser/fake_signin_manager.h"
21 // Helper function to be used with KeyedService::SetTestingFactory().
22 // In order to match the API of SigninManagerFactory::GetForProfile(), returns a
23 // FakeSigninManagerBase* on ChromeOS, and a FakeSigninManager* on all other
24 // platforms. The returned instance is initialized.
25 scoped_ptr
<KeyedService
> BuildFakeSigninManagerBase(
26 content::BrowserContext
* context
);
28 class FakeSigninManagerForTesting
29 #if defined(OS_CHROMEOS)
30 : public FakeSigninManagerBase
{
32 : public FakeSigninManager
{
36 FakeSigninManagerForTesting(Profile
* profile
);
39 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_BUILDER_H_