1// Copyright 2013 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_UI_APP_LIST_TEST_CHROME_APP_LIST_TEST_SUPPORT_H_
6#define CHROME_BROWSER_UI_APP_LIST_TEST_CHROME_APP_LIST_TEST_SUPPORT_H_
7
8namespace app_list {
9class AppListModel;
10}
11
12class AppListService;
13class AppListServiceImpl;
14class Profile;
15
16namespace test {
17
18// Gets the model keyed to the profile currently associated with |service|.
19app_list::AppListModel* GetAppListModel(AppListService* service);
20
21// Gets the app list service for the desktop type currently being tested. These
22// are the same, but split so that files don't need to know that the impl is a
23// subclass.
24AppListService* GetAppListService();
25AppListServiceImpl* GetAppListServiceImpl();
26
27// Creates a second profile in a nested message loop for testing the app list.
28Profile* CreateSecondProfileAsync();
29
30}  // namespace test
31
32#endif  // CHROME_BROWSER_UI_APP_LIST_TEST_CHROME_APP_LIST_TEST_SUPPORT_H_
33