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 #include "chrome/browser/ui/app_list/test/chrome_app_list_test_support.h" 6 7 #include "chrome/browser/ui/app_list/app_list_service.h" 8 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" 9 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" 10 11 namespace test { 12 GetAppListModel(AppListService * service)13app_list::AppListModel* GetAppListModel(AppListService* service) { 14 return app_list::AppListSyncableServiceFactory::GetForProfile( 15 service->GetCurrentAppListProfile())->model(); 16 } 17 GetAppListService()18AppListService* GetAppListService() { 19 // TODO(tapted): Consider testing ash explicitly on the win-ash trybot. 20 return AppListService::Get(chrome::GetActiveDesktop()); 21 } 22 23 } // namespace test 24