1116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
2116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Use of this source code is governed by a BSD-style license that can be
3116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// found in the LICENSE file.
4116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#ifndef CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_
5116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#define CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_
6116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
7116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "components/signin/core/browser/account_reconcilor.h"
8116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
9116680a4aac90f2aa7413d9095a592090648e557Ben Murdochnamespace content {
10116680a4aac90f2aa7413d9095a592090648e557Ben Murdochclass BrowserContext;
11116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch}
12116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
13116680a4aac90f2aa7413d9095a592090648e557Ben Murdochclass FakeAccountReconcilor : public AccountReconcilor {
14116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch public:
15116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  FakeAccountReconcilor(ProfileOAuth2TokenService* token_service,
16116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch                        SigninManagerBase* signin_manager,
17116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch                        SigninClient* client);
18116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
19116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  // Helper function to be used with KeyedService::SetTestingFactory().
20116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  static KeyedService* Build(content::BrowserContext* context);
21116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
22116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch protected:
23116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  // Override this method to perform no network call, instead the callback
24116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  // is called immediately
25116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  virtual void GetAccountsFromCookie(GetAccountsFromCookieCallback callback)
26116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch      OVERRIDE;
27116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
28116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  DISALLOW_COPY_AND_ASSIGN(FakeAccountReconcilor);
29116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch};
30116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
31116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#endif  // CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_
32