1 /* |
|
2 * Copyright (c) 2002 - 2007 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 senduisingleton.h and CSendingService.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef SENDUIPLUGINAPITEST_H |
|
22 #define SENDUIPLUGINAPITEST_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <StifLogger.h> |
|
26 #include <TestScripterInternal.h> |
|
27 #include <StifTestModule.h> |
|
28 #include <TestclassAssert.h> |
|
29 |
|
30 // CONSTANTS |
|
31 |
|
32 // MACROS |
|
33 #define TEST_CLASS_VERSION_MAJOR 0 |
|
34 #define TEST_CLASS_VERSION_MINOR 0 |
|
35 #define TEST_CLASS_VERSION_BUILD 0 |
|
36 |
|
37 // Logging path |
|
38 _LIT( KSendUiPluginAPITestLogPath, "\\logs\\testframework\\SendUiPluginAPITest\\" ); |
|
39 // Log file |
|
40 _LIT( KSendUiPluginAPITestLogFile, "SendUiPluginAPITest.txt" ); |
|
41 _LIT( KSendUiPluginAPITestLogFileWithTitle, "SendUiPluginAPITest_[%S].txt" ); |
|
42 |
|
43 // FUNCTION PROTOTYPES |
|
44 |
|
45 // FORWARD DECLARATIONS |
|
46 class CSendUiPluginAPITest; |
|
47 |
|
48 // DATA TYPES |
|
49 |
|
50 // CLASS DECLARATION |
|
51 |
|
52 /** |
|
53 * CSendUiPluginAPITest test class for STIF Test Framework TestScripter. |
|
54 * ?other_description_lines |
|
55 * |
|
56 * @lib ?library |
|
57 * @since ?Series60_version |
|
58 */ |
|
59 NONSHARABLE_CLASS(CSendUiPluginAPITest) : public CScriptBase |
|
60 { |
|
61 public: // Constructors and destructor |
|
62 |
|
63 /** |
|
64 * Two-phased constructor. |
|
65 */ |
|
66 static CSendUiPluginAPITest* NewL( CTestModuleIf& aTestModuleIf ); |
|
67 |
|
68 /** |
|
69 * Destructor. |
|
70 */ |
|
71 virtual ~CSendUiPluginAPITest(); |
|
72 |
|
73 public: // New functions |
|
74 |
|
75 /** |
|
76 * ?member_description. |
|
77 * @since ?Series60_version |
|
78 * @param ?arg1 ?description |
|
79 * @return ?description |
|
80 */ |
|
81 //?type ?member_function( ?type ?arg1 ); |
|
82 |
|
83 public: // Functions from base classes |
|
84 |
|
85 /** |
|
86 * From CScriptBase Runs a script line. |
|
87 * @since ?Series60_version |
|
88 * @param aItem Script line containing method name and parameters |
|
89 * @return Symbian OS error code |
|
90 */ |
|
91 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
92 |
|
93 protected: // New functions |
|
94 |
|
95 /** |
|
96 * ?member_description. |
|
97 * @since ?Series60_version |
|
98 * @param ?arg1 ?description |
|
99 * @return ?description |
|
100 */ |
|
101 |
|
102 protected: // Functions from base classes |
|
103 |
|
104 /** |
|
105 * From ?base_class ?member_description |
|
106 */ |
|
107 |
|
108 private: |
|
109 |
|
110 /** |
|
111 * C++ default constructor. |
|
112 */ |
|
113 CSendUiPluginAPITest( CTestModuleIf& aTestModuleIf ); |
|
114 |
|
115 /** |
|
116 * By default Symbian 2nd phase constructor is private. |
|
117 */ |
|
118 void ConstructL(); |
|
119 |
|
120 // Prohibit copy constructor if not deriving from CBase. |
|
121 // ?classname( const ?classname& ); |
|
122 // Prohibit assigment operator if not deriving from CBase. |
|
123 // ?classname& operator=( const ?classname& ); |
|
124 |
|
125 /** |
|
126 * Frees all resources allocated from test methods. |
|
127 * @since ?Series60_version |
|
128 */ |
|
129 void Delete(); |
|
130 |
|
131 /** |
|
132 * Test methods are listed below. |
|
133 */ |
|
134 |
|
135 |
|
136 /** |
|
137 * Method used to log version of test class |
|
138 */ |
|
139 void SendTestClassVersion(); |
|
140 |
|
141 /** |
|
142 * Tests CSendUiSingleton::NewL |
|
143 */ |
|
144 TInt TestCSendUiSingletonNewL( CStifItemParser& aItem ); |
|
145 |
|
146 /** |
|
147 * Tests CSendUiSingleton::MsvSessionL |
|
148 */ |
|
149 TInt TestMsvSessionL(CStifItemParser& aItem ); |
|
150 |
|
151 /** |
|
152 * Tests CSendUiSingleton::ClientMtmRegistryL |
|
153 */ |
|
154 TInt TestClientMtmRegistryL(CStifItemParser& aItem ); |
|
155 |
|
156 /** |
|
157 * Tests CSendUiSingleton::MtmUiRegistryL |
|
158 */ |
|
159 TInt TestMtmUiRegistryL(CStifItemParser& aItem ); |
|
160 |
|
161 /** |
|
162 * Tests CSendUiSingleton::MtmUiDataRegistryL |
|
163 */ |
|
164 TInt TestMtmUiDataRegistryL(CStifItemParser& aItem ); |
|
165 |
|
166 /** |
|
167 * Tests CSendingService::NewL, CSendingService::~CSendingService(), CSendingService::CSendingService |
|
168 */ |
|
169 TInt TestCSendingServiceL(CStifItemParser& aItem ); |
|
170 |
|
171 //ADD NEW METHOD DEC HERE |
|
172 //[TestMethods] - Do not remove |
|
173 |
|
174 public: // Data |
|
175 // ?one_line_short_description_of_data |
|
176 //?data_declaration; |
|
177 |
|
178 protected: // Data |
|
179 // ?one_line_short_description_of_data |
|
180 //?data_declaration; |
|
181 |
|
182 private: // Data |
|
183 |
|
184 // ?one_line_short_description_of_data |
|
185 //?data_declaration; |
|
186 |
|
187 // Reserved pointer for future extension |
|
188 //TAny* iReserved; |
|
189 |
|
190 public: // Friend classes |
|
191 //?friend_class_declaration; |
|
192 protected: // Friend classes |
|
193 //?friend_class_declaration; |
|
194 private: // Friend classes |
|
195 //?friend_class_declaration; |
|
196 |
|
197 }; |
|
198 |
|
199 #endif // SENDUIPLUGINAPITEST_H |
|
200 |
|
201 // End of File |
|