summaryrefslogtreecommitdiff
path: root/chrome/browser/signin/fake_account_reconcilor.h
blob: 49e81dc71fcb5d9cc88d88a4830af0ba4ecfda3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_
#define CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_

#include "components/signin/core/browser/account_reconcilor.h"

namespace content {
class BrowserContext;
}

class FakeAccountReconcilor : public AccountReconcilor {
 public:
  FakeAccountReconcilor(ProfileOAuth2TokenService* token_service,
                        SigninManagerBase* signin_manager,
                        SigninClient* client);

  // Helper function to be used with KeyedService::SetTestingFactory().
  static KeyedService* Build(content::BrowserContext* context);

 protected:
  // Override this method to perform no network call, instead the callback
  // is called immediately
  virtual void GetAccountsFromCookie(GetAccountsFromCookieCallback callback)
      OVERRIDE;

  DISALLOW_COPY_AND_ASSIGN(FakeAccountReconcilor);
};

#endif  // CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_