15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file. 45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#ifndef CHROME_BROWSER_UI_APP_LIST_TEST_CHROME_APP_LIST_TEST_SUPPORT_H_ 65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#define CHROME_BROWSER_UI_APP_LIST_TEST_CHROME_APP_LIST_TEST_SUPPORT_H_ 75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace app_list { 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)class AppListModel; 105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} 115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)class AppListService; 131320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciclass AppListServiceImpl; 141320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciclass Profile; 155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace test { 175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Gets the model keyed to the profile currently associated with |service|. 195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)app_list::AppListModel* GetAppListModel(AppListService* service); 205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 211320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Gets the app list service for the desktop type currently being tested. These 221320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// are the same, but split so that files don't need to know that the impl is a 231320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// subclass. 245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)AppListService* GetAppListService(); 251320f92c476a1ad9d19dba2a48c72b75566198e9Primiano TucciAppListServiceImpl* GetAppListServiceImpl(); 261320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci 271320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Creates a second profile in a nested message loop for testing the app list. 281320f92c476a1ad9d19dba2a48c72b75566198e9Primiano TucciProfile* CreateSecondProfileAsync(); 295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} // namespace test 315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif // CHROME_BROWSER_UI_APP_LIST_TEST_CHROME_APP_LIST_TEST_SUPPORT_H_ 33