|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __T_casrvAppScaner_H__ |
|
19 #define __T_casrvAppScaner_H__ |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 |
|
23 #include "casrvplugin.h" |
|
24 #include "casrvmanager.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CTestUtils; |
|
28 class CCaStorageProxy; |
|
29 class CCaSrvEngUtils; |
|
30 namespace Usif{ |
|
31 class RSoftwareComponentRegistry; |
|
32 } |
|
33 |
|
34 #include <e32def.h> |
|
35 |
|
36 class T_CaInstaller; |
|
37 |
|
38 class T_casrvAppScaner : public QObject |
|
39 { |
|
40 Q_OBJECT |
|
41 public: |
|
42 T_casrvAppScaner(); |
|
43 private slots: |
|
44 void initTestCase(); |
|
45 void init(); |
|
46 void testNew(); |
|
47 void testHandler_LoadPlugin(); |
|
48 void testHandler_New(); |
|
49 void testUninstalled(); |
|
50 void testInstalled(); |
|
51 void testAddNewApp(); |
|
52 void testNoUpdate(); |
|
53 void testRemoveMmcApp(); |
|
54 void testRemoveMmcAttr(); |
|
55 void testRemoveMissingFlag(); |
|
56 void testRemoveMissingFlag01(); |
|
57 void testAddMissingFlag(); |
|
58 void testSatApp(); |
|
59 void testHsApp(); |
|
60 void testAddRemovable(); |
|
61 void testRemoveRemovable(); |
|
62 void testRunError(); |
|
63 void testInstallNotifier(); |
|
64 void testDownloadCollectionAdd(); |
|
65 void testDownloadCollectionUpdate(); |
|
66 void testDownloadCollectionRemove(); |
|
67 void testCreatePredefinedCollection(); |
|
68 void testGetAllCollectionIdL(); |
|
69 void testUpdateComponentIdL(); |
|
70 void testSave(); |
|
71 void testInsert(); |
|
72 void testSetCWRTAppL(); |
|
73 void testSetJavaAppL(); |
|
74 void cleanup(); |
|
75 void cleanupTestCase(); |
|
76 private: // Data |
|
77 //setup methods |
|
78 |
|
79 void Setup_UninstalledL(); |
|
80 void Setup_AddNewAppL(); |
|
81 void Setup_NoUpdateL(); |
|
82 void Setup_RemoveMmcAppL(); |
|
83 void Setup_RemoveMmcAttrL(); |
|
84 void Setup_RemoveMissingFlagL(); |
|
85 void Setup_RemoveMissingFlag01L(); |
|
86 void Setup_AddMissingFlagL(); |
|
87 void Setup_SatAppL(); |
|
88 void Setup_HsAppL(); |
|
89 void Setup_AddRemovableL(); |
|
90 void Setup_RemoveRemovableL(); |
|
91 |
|
92 |
|
93 CTestUtils *iTestUtils; |
|
94 |
|
95 CCaStorageProxy *iStorage; |
|
96 |
|
97 CCaSrvEngUtils *iSrvEngUtils; |
|
98 |
|
99 Usif::RSoftwareComponentRegistry *iScr; |
|
100 |
|
101 T_CaInstaller *iInstaller; |
|
102 }; |
|
103 |
|
104 #endif // __T_casrvAppScaner_H__ |
|
105 |
|
106 // End of file |