|
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_caUsifScanner_H__ |
|
19 #define __T_caUsifScanner_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 class T_CaInstaller; |
|
31 |
|
32 namespace Usif{ |
|
33 class RSoftwareComponentRegistry; |
|
34 } |
|
35 |
|
36 #include <e32def.h> |
|
37 |
|
38 class T_caUsifScaner : public QObject |
|
39 { |
|
40 Q_OBJECT |
|
41 public: |
|
42 |
|
43 T_caUsifScaner(); |
|
44 |
|
45 private slots: |
|
46 |
|
47 void initTestCase(); |
|
48 void init(); |
|
49 |
|
50 void testNew(); |
|
51 void testLoadPlugin(); |
|
52 void testInstalled(); |
|
53 void testAddNewApp(); |
|
54 void testAddRemovable(); |
|
55 void testInstallNotifier(); |
|
56 |
|
57 void testJavaStrategy(); |
|
58 void testSwiStrategy(); |
|
59 void testUsifStrategy(); |
|
60 |
|
61 |
|
62 void cleanup(); |
|
63 void cleanupTestCase(); |
|
64 |
|
65 |
|
66 |
|
67 private: // Data |
|
68 //setup methods |
|
69 |
|
70 void Setup_AddNewAppL(); |
|
71 void Setup_AddRemovableL(); |
|
72 |
|
73 CTestUtils *iTestUtils; |
|
74 |
|
75 CCaStorageProxy *iStorage; |
|
76 |
|
77 CCaSrvEngUtils *iSrvEngUtils; |
|
78 |
|
79 TPluginParams iPluginParams; |
|
80 |
|
81 T_CaInstaller *iInstaller; |
|
82 |
|
83 Usif::RSoftwareComponentRegistry *iScr; |
|
84 }; |
|
85 |
|
86 #endif // __T_caUsifScanner_H__ |
|
87 |
|
88 // End of file |