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.
4
5#ifndef CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
6#define CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
7
8class KeyedService;
9
10namespace content {
11class BrowserContext;
12}
13
14// Helper function to be used with
15// BrowserContextKeyedServiceFactory::SetTestingFactory() that returns a
16// FakeProfileOAuth2TokenService object.
17KeyedService* BuildFakeProfileOAuth2TokenService(
18    content::BrowserContext* context);
19
20// Helper function to be used with
21// BrowserContextKeyedServiceFactory::SetTestingFactory() that creates a
22// FakeProfileOAuth2TokenService object that posts fetch responses on the
23// current message loop.
24KeyedService* BuildAutoIssuingFakeProfileOAuth2TokenService(
25    content::BrowserContext* context);
26
27#endif  // CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
28