author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 22 | fc9cf246af83 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2006-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 the License "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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
// INCLUDE FILES |
|
22 |
#include <e32svr.h> |
|
23 |
#include <StifParser.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
24 |
#include <StifTestInterface.h> |
19 | 25 |
#include "sendmessage.h" |
26 |
||
27 |
// EXTERNAL DATA STRUCTURES |
|
28 |
//extern ?external_data; |
|
29 |
||
30 |
// EXTERNAL FUNCTION PROTOTYPES |
|
31 |
//extern ?external_function( ?arg_type,?arg_type ); |
|
32 |
||
33 |
// CONSTANTS |
|
34 |
//const ?type ?constant_var = ?constant; |
|
35 |
||
36 |
// MACROS |
|
37 |
//#define ?macro ?macro_def |
|
38 |
||
39 |
// LOCAL CONSTANTS AND MACROS |
|
40 |
//const ?type ?constant_var = ?constant; |
|
41 |
//#define ?macro_name ?macro_def |
|
42 |
||
43 |
// MODULE DATA STRUCTURES |
|
44 |
//enum ?declaration |
|
45 |
//typedef ?declaration |
|
46 |
||
47 |
// LOCAL FUNCTION PROTOTYPES |
|
48 |
//?type ?function_name( ?arg_type, ?arg_type ); |
|
49 |
||
50 |
// FORWARD DECLARATIONS |
|
51 |
//class ?FORWARD_CLASSNAME; |
|
52 |
||
53 |
// ============================= LOCAL FUNCTIONS =============================== |
|
54 |
||
55 |
// ----------------------------------------------------------------------------- |
|
56 |
// ?function_name ?description. |
|
57 |
// ?description |
|
58 |
// Returns: ?value_1: ?description |
|
59 |
// ?value_n: ?description_line1 |
|
60 |
// ?description_line2 |
|
61 |
// ----------------------------------------------------------------------------- |
|
62 |
// |
|
63 |
/* |
|
64 |
?type ?function_name( |
|
65 |
?arg_type arg, // ?description |
|
66 |
?arg_type arg) // ?description |
|
67 |
{ |
|
68 |
||
69 |
?code // ?comment |
|
70 |
||
71 |
// ?comment |
|
72 |
?code |
|
73 |
} |
|
74 |
*/ |
|
75 |
||
76 |
// ============================ MEMBER FUNCTIONS =============================== |
|
77 |
||
78 |
// ----------------------------------------------------------------------------- |
|
79 |
// Csapi_sendmessage::Delete |
|
80 |
// Delete here all resources allocated and opened from test methods. |
|
81 |
// Called from destructor. |
|
82 |
// ----------------------------------------------------------------------------- |
|
83 |
// |
|
84 |
void Csapi_sendmessage::Delete() |
|
85 |
{ |
|
86 |
||
87 |
} |
|
88 |
||
89 |
// ----------------------------------------------------------------------------- |
|
90 |
// Csapi_sendmessage::RunMethodL |
|
91 |
// Run specified method. Contains also table of test mothods and their names. |
|
92 |
// ----------------------------------------------------------------------------- |
|
93 |
// |
|
94 |
TInt Csapi_sendmessage::RunMethodL( |
|
95 |
CStifItemParser& aItem ) |
|
96 |
{ |
|
97 |
||
98 |
static TStifFunctionInfo const KFunctions[] = |
|
99 |
{ |
|
100 |
// Copy this line for every implemented function. |
|
101 |
// First string is the function name used in TestScripter script file. |
|
102 |
// Second is the actual implementation member function. |
|
103 |
||
104 |
ENTRY( "sendmessage_test1", Csapi_sendmessage::sendmessage_test1L ), |
|
105 |
ENTRY( "sendmessage_test2", Csapi_sendmessage::sendmessage_test2L ), |
|
106 |
ENTRY( "sendmessage_test3", Csapi_sendmessage::sendmessage_test3L ), |
|
107 |
ENTRY( "sendmessage_test4", Csapi_sendmessage::sendmessage_test4L ), |
|
108 |
ENTRY( "sendmessage_test5", Csapi_sendmessage::sendmessage_test5L ), |
|
109 |
ENTRY( "sendmessage_test6", Csapi_sendmessage::sendmessage_test6L ), |
|
110 |
ENTRY( "sendmessage_test7", Csapi_sendmessage::sendmessage_test7L ), |
|
111 |
ENTRY( "sendmessage_test8", Csapi_sendmessage::sendmessage_test8L ), |
|
112 |
ENTRY( "sendmessage_test9", Csapi_sendmessage::sendmessage_test9L ), |
|
113 |
ENTRY( "sendmessage_test10", Csapi_sendmessage::sendmessage_test10L ), |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
114 |
ENTRY( "sendmessage_test11", Csapi_sendmessage::sendmessage_test11L ) |
19 | 115 |
|
116 |
}; |
|
117 |
||
118 |
const TInt count = sizeof( KFunctions ) / |
|
119 |
sizeof( TStifFunctionInfo ); |
|
120 |
||
121 |
return RunInternalL( KFunctions, count, aItem ); |
|
122 |
||
123 |
} |
|
124 |
||
125 |
// ----------------------------------------------------------------------------- |
|
126 |
// Csapi_sendmessage::accum1_testL |
|
127 |
// Example test method function. |
|
128 |
// (other items were commented in a header). |
|
129 |
// ----------------------------------------------------------------------------- |
|
130 |
// |
|
131 |
TInt Csapi_sendmessage::sendmessage_test1L( CStifItemParser& /*aItem*/ ) |
|
132 |
{ |
|
133 |
int ret=0; |
|
134 |
ret = sendmessage_test1(0, NULL); |
|
135 |
||
136 |
if(ret==0) |
|
137 |
return KErrNone; |
|
138 |
else |
|
139 |
return KErrGeneral; |
|
140 |
||
141 |
} |
|
142 |
// ----------------------------------------------------------------------------- |
|
143 |
// Csapi_sendmessage::accum2_testL |
|
144 |
// Example test method function. |
|
145 |
// (other items were commented in a header). |
|
146 |
// ----------------------------------------------------------------------------- |
|
147 |
// |
|
148 |
TInt Csapi_sendmessage::sendmessage_test2L( CStifItemParser& /*aItem*/ ) |
|
149 |
{ |
|
150 |
int ret=0; |
|
151 |
ret = sendmessage_test2(0, NULL); |
|
152 |
||
153 |
if(ret==0) |
|
154 |
return KErrNone; |
|
155 |
else |
|
156 |
return KErrGeneral; |
|
157 |
||
158 |
} |
|
159 |
// ----------------------------------------------------------------------------- |
|
160 |
// Csapi_sendmessage::accum3_testL |
|
161 |
// Example test method function. |
|
162 |
// (other items were commented in a header). |
|
163 |
// ----------------------------------------------------------------------------- |
|
164 |
// |
|
165 |
TInt Csapi_sendmessage::sendmessage_test3L( CStifItemParser& /*aItem*/ ) |
|
166 |
{ |
|
167 |
int ret=0; |
|
168 |
ret = sendmessage_test3(0, NULL); |
|
169 |
||
170 |
if(ret==0) |
|
171 |
return KErrNone; |
|
172 |
else |
|
173 |
return KErrGeneral; |
|
174 |
||
175 |
} |
|
176 |
// ----------------------------------------------------------------------------- |
|
177 |
// Csapi_sendmessage::accum4_testL |
|
178 |
// Example test method function. |
|
179 |
// (other items were commented in a header). |
|
180 |
// ----------------------------------------------------------------------------- |
|
181 |
// |
|
182 |
TInt Csapi_sendmessage::sendmessage_test4L( CStifItemParser& /*aItem*/ ) |
|
183 |
{ |
|
184 |
int ret=0; |
|
185 |
ret = sendmessage_test4(0, NULL); |
|
186 |
||
187 |
if(ret==0) |
|
188 |
return KErrNone; |
|
189 |
else |
|
190 |
return KErrGeneral; |
|
191 |
||
192 |
} |
|
193 |
// ----------------------------------------------------------------------------- |
|
194 |
// Csapi_sendmessage::accum5_testL |
|
195 |
// Example test method function. |
|
196 |
// (other items were commented in a header). |
|
197 |
// ----------------------------------------------------------------------------- |
|
198 |
// |
|
199 |
TInt Csapi_sendmessage::sendmessage_test5L( CStifItemParser& /*aItem*/ ) |
|
200 |
{ |
|
201 |
int ret=0; |
|
202 |
ret = sendmessage_test5(0, NULL); |
|
203 |
||
204 |
if(ret==0) |
|
205 |
return KErrNone; |
|
206 |
else |
|
207 |
return KErrGeneral; |
|
208 |
||
209 |
} |
|
210 |
// ----------------------------------------------------------------------------- |
|
211 |
// Csapi_sendmessage::accum6_testL |
|
212 |
// Example test method function. |
|
213 |
// (other items were commented in a header). |
|
214 |
// ----------------------------------------------------------------------------- |
|
215 |
// |
|
216 |
TInt Csapi_sendmessage::sendmessage_test6L( CStifItemParser& /*aItem*/ ) |
|
217 |
{ |
|
218 |
int ret=0; |
|
219 |
ret = sendmessage_test6(0, NULL); |
|
220 |
||
221 |
if(ret==0) |
|
222 |
return KErrNone; |
|
223 |
else |
|
224 |
return KErrNone; |
|
225 |
||
226 |
} |
|
227 |
// ----------------------------------------------------------------------------- |
|
228 |
// Csapi_sendmessage::accum7_testL |
|
229 |
// Example test method function. |
|
230 |
// (other items were commented in a header). |
|
231 |
// ----------------------------------------------------------------------------- |
|
232 |
// |
|
233 |
TInt Csapi_sendmessage::sendmessage_test7L( CStifItemParser& /*aItem*/ ) |
|
234 |
{ |
|
235 |
int ret=0; |
|
236 |
ret = sendmessage_test7(0, NULL); |
|
237 |
||
238 |
if(ret==0) |
|
239 |
return KErrNone; |
|
240 |
else |
|
241 |
return KErrGeneral; |
|
242 |
||
243 |
} |
|
244 |
// ----------------------------------------------------------------------------- |
|
245 |
// Csapi_sendmessage::accum8_testL |
|
246 |
// Example test method function. |
|
247 |
// (other items were commented in a header). |
|
248 |
// ----------------------------------------------------------------------------- |
|
249 |
// |
|
250 |
TInt Csapi_sendmessage::sendmessage_test8L( CStifItemParser& /*aItem*/ ) |
|
251 |
{ |
|
252 |
int ret=0; |
|
253 |
ret = sendmessage_test8(0, NULL); |
|
254 |
||
255 |
if(ret==0) |
|
256 |
return KErrNone; |
|
257 |
else |
|
258 |
return KErrGeneral; |
|
259 |
||
260 |
} |
|
261 |
// ----------------------------------------------------------------------------- |
|
262 |
// Csapi_sendmessage::accum9_testL |
|
263 |
// Example test method function. |
|
264 |
// (other items were commented in a header). |
|
265 |
// ----------------------------------------------------------------------------- |
|
266 |
// |
|
267 |
TInt Csapi_sendmessage::sendmessage_test9L( CStifItemParser& /*aItem*/ ) |
|
268 |
{ |
|
269 |
int ret=0; |
|
270 |
ret = sendmessage_test9(0, NULL); |
|
271 |
||
272 |
if(ret==0) |
|
273 |
return KErrNone; |
|
274 |
else |
|
275 |
return KErrGeneral; |
|
276 |
||
277 |
} |
|
278 |
// ----------------------------------------------------------------------------- |
|
279 |
// Csapi_sendmessage::accum10_testL |
|
280 |
// Example test method function. |
|
281 |
// (other items were commented in a header). |
|
282 |
// ----------------------------------------------------------------------------- |
|
283 |
// |
|
284 |
TInt Csapi_sendmessage::sendmessage_test10L( CStifItemParser& /*aItem*/ ) |
|
285 |
{ |
|
286 |
int ret=0; |
|
287 |
ret = sendmessage_test10(0, NULL); |
|
288 |
||
289 |
if(ret==0) |
|
290 |
return KErrNone; |
|
291 |
else |
|
292 |
return KErrGeneral; |
|
293 |
||
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
294 |
} |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
295 |
// ----------------------------------------------------------------------------- |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
296 |
// Csapi_sendmessage::accum11_testL |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
297 |
// Example test method function. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
298 |
// (other items were commented in a header). |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
299 |
// ----------------------------------------------------------------------------- |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
300 |
// |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
301 |
TInt Csapi_sendmessage::sendmessage_test11L( CStifItemParser& /*aItem*/ ) |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
302 |
{ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
303 |
int ret=0; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
304 |
ret = sendmessage_test11(0, NULL); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
305 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
306 |
if(ret==0) |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
307 |
return KErrNone; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
308 |
else |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
309 |
return KErrGeneral; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
310 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
311 |
} |
19 | 312 |
// ----------------------------------------------------------------------------- |
313 |
// Csapi_sendmessage::?member_function |
|
314 |
// ?implementation_description |
|
315 |
// (other items were commented in a header). |
|
316 |
// ----------------------------------------------------------------------------- |
|
317 |
// |
|
318 |
/* |
|
319 |
TInt Csapi_sendmessage::?member_function( |
|
320 |
CItemParser& aItem ) |
|
321 |
{ |
|
322 |
||
323 |
?code |
|
324 |
||
325 |
} |
|
326 |
*/ |
|
327 |
||
328 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
329 |
// None |
|
330 |
||
331 |
// End of File |