|
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 |
|
19 #ifndef __UT_SAPIDATAPLUGIN_H__ |
|
20 #define __UT_SAPIDATAPLUGIN_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 #include <msvapi.h> |
|
25 #include <hscontentpublisher.h> |
|
26 #include <aicontentmodel.h> |
|
27 // INTERNAL INCLUDES |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CSapiData; |
|
31 class CSapiDataPlugin; |
|
32 class Observer; |
|
33 |
|
34 #include <e32def.h> |
|
35 #ifndef NONSHARABLE_CLASS |
|
36 #define NONSHARABLE_CLASS(x) class x |
|
37 #endif |
|
38 |
|
39 // CLASS DEFINITION |
|
40 /** |
|
41 * |
|
42 * Unit test for the mcspluginhandler |
|
43 * |
|
44 */ |
|
45 NONSHARABLE_CLASS( UT_SapiDataPlugin ) : |
|
46 public CEUnitTestSuiteClass |
|
47 //public MMsvSessionObserver |
|
48 { |
|
49 public: // Constructors and destructors |
|
50 |
|
51 /** |
|
52 * Two phase construction |
|
53 */ |
|
54 static UT_SapiDataPlugin* NewL(); |
|
55 static UT_SapiDataPlugin* NewLC(); |
|
56 /** |
|
57 * Destructor |
|
58 */ |
|
59 ~UT_SapiDataPlugin(); |
|
60 |
|
61 private: // Constructors and destructors |
|
62 |
|
63 UT_SapiDataPlugin(); |
|
64 void ConstructL(); |
|
65 |
|
66 private: // New methods |
|
67 |
|
68 void SetupL(); |
|
69 |
|
70 void Teardown(); |
|
71 |
|
72 void UT_SapiDataPlugin_Data(); |
|
73 |
|
74 void UT_SapiDataPlugin_ConfigureL(); |
|
75 |
|
76 void UT_SapiDataPlugin_Resume(); |
|
77 |
|
78 void UT_SapiDataPlugin_NetworkStatus(); |
|
79 |
|
80 void UT_SapiDataPlugin_GetProperty(); |
|
81 |
|
82 void UT_SapiDataPlugin_GetTypeL(); |
|
83 |
|
84 void UT_SapiDataPlugin_GetIdL(); |
|
85 |
|
86 void UT_SapiDataPlugin_HasMenuItem(); |
|
87 |
|
88 void UT_SapiDataPlugin_Clean(); |
|
89 |
|
90 private: // Data |
|
91 |
|
92 CSapiData* iData; |
|
93 |
|
94 CSapiDataPlugin* iPlugin; |
|
95 |
|
96 Observer* iObserver; |
|
97 |
|
98 EUNIT_DECLARE_TEST_TABLE; |
|
99 }; |
|
100 |
|
101 #endif // __UT_SAPIDATAPLUGIN_H__ |
|
102 |
|
103 // End of file |