|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Tests for HomeScreenStateProvider class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_HSMCSSTATES_H |
|
20 #define T_HSMCSSTATES_H |
|
21 #include <QtTest/QtTest> |
|
22 #ifdef Q_OS_SYMBIAN |
|
23 #include <e32std.h> |
|
24 #include <e32const.h> |
|
25 #endif |
|
26 |
|
27 |
|
28 class HsMenuItemModel; |
|
29 /** |
|
30 * @test Test class for menuservice modules. |
|
31 */ |
|
32 class MenuServiceTest : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 private slots: |
|
37 |
|
38 |
|
39 /** |
|
40 * initialize |
|
41 */ |
|
42 void initTestCase(); |
|
43 /* |
|
44 * Tests |
|
45 */ |
|
46 void MenuService_getAllApplicationsModel(); |
|
47 void MenuService_getAllCollectionsModel(); |
|
48 void MenuService_getInstalledModel(); |
|
49 void MenuService_getCollectionModel(); |
|
50 void MenuService_getCollectionNames(); |
|
51 void MenuService_getName(); |
|
52 void MenuService_executeAction(); |
|
53 void MenuService_executeActionEntry(); |
|
54 #ifdef Q_OS_SYMBIAN |
|
55 void MenuService_launchTS(); |
|
56 #endif//Q_OS_SYMBIAN |
|
57 void MenuService_createCollection(); |
|
58 void MenuService_renameCollection(); |
|
59 void MenuService_removeCollection(); |
|
60 void MenuService_addApplicationsToCollection(); |
|
61 void MenuService_removeApplicationFromCollection(); |
|
62 void MenuService_organizeCollection(); |
|
63 void MenuService_touchAction(); |
|
64 void MenuService_touchListOfIdsAction(); |
|
65 void MenuService_launchSoftwareUpdate(); |
|
66 void MenuService_collectionIdByType(); |
|
67 |
|
68 |
|
69 void HsMenuItemModel_construction(); |
|
70 void HsMenuItemModel_setSort(); |
|
71 void HsMenuItemModel_getData(); |
|
72 void HsMenuItemModel_newIconNeeded(); |
|
73 void HsMenuItemModel_uninstallChange(); |
|
74 void HsMenuItemModel_preloadIcons(); |
|
75 |
|
76 void HsIconsIdleLoader_construction(); |
|
77 |
|
78 void HsMenuCollectionsItemModel_construction(); |
|
79 void HsMenuCollectionsItemModel_getData(); |
|
80 void HsMenuCollectionsItemModel_getSecondLine(); |
|
81 |
|
82 void HsMenuEntryRemovedHandlerTest_data(); |
|
83 void HsMenuEntryRemovedHandlerTest(); |
|
84 |
|
85 |
|
86 /** |
|
87 * cleanup |
|
88 */ |
|
89 void cleanup(); |
|
90 void cleanupTestCase(); |
|
91 |
|
92 private: |
|
93 |
|
94 int getId(HsMenuItemModel *model , int index); |
|
95 |
|
96 private: |
|
97 #ifdef Q_OS_SYMBIAN |
|
98 void startThread(); |
|
99 void stopThread(); |
|
100 RThread iThread; |
|
101 #endif //Q_OS_SYMBIAN |
|
102 }; |
|
103 |
|
104 #endif |