5
|
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>
|
|
24 |
#include <Stiftestinterface.h>
|
|
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 ),
|
|
114 |
|
|
115 |
};
|
|
116 |
|
|
117 |
const TInt count = sizeof( KFunctions ) /
|
|
118 |
sizeof( TStifFunctionInfo );
|
|
119 |
|
|
120 |
return RunInternalL( KFunctions, count, aItem );
|
|
121 |
|
|
122 |
}
|
|
123 |
|
|
124 |
// -----------------------------------------------------------------------------
|
|
125 |
// Csapi_sendmessage::accum1_testL
|
|
126 |
// Example test method function.
|
|
127 |
// (other items were commented in a header).
|
|
128 |
// -----------------------------------------------------------------------------
|
|
129 |
//
|
|
130 |
TInt Csapi_sendmessage::sendmessage_test1L( CStifItemParser& /*aItem*/ )
|
|
131 |
{
|
|
132 |
int ret=0;
|
|
133 |
ret = sendmessage_test1(0, NULL);
|
|
134 |
|
|
135 |
if(ret==0)
|
|
136 |
return KErrNone;
|
|
137 |
else
|
|
138 |
return KErrGeneral;
|
|
139 |
|
|
140 |
}
|
|
141 |
// -----------------------------------------------------------------------------
|
|
142 |
// Csapi_sendmessage::accum2_testL
|
|
143 |
// Example test method function.
|
|
144 |
// (other items were commented in a header).
|
|
145 |
// -----------------------------------------------------------------------------
|
|
146 |
//
|
|
147 |
TInt Csapi_sendmessage::sendmessage_test2L( CStifItemParser& /*aItem*/ )
|
|
148 |
{
|
|
149 |
int ret=0;
|
|
150 |
ret = sendmessage_test2(0, NULL);
|
|
151 |
|
|
152 |
if(ret==0)
|
|
153 |
return KErrNone;
|
|
154 |
else
|
|
155 |
return KErrGeneral;
|
|
156 |
|
|
157 |
}
|
|
158 |
// -----------------------------------------------------------------------------
|
|
159 |
// Csapi_sendmessage::accum3_testL
|
|
160 |
// Example test method function.
|
|
161 |
// (other items were commented in a header).
|
|
162 |
// -----------------------------------------------------------------------------
|
|
163 |
//
|
|
164 |
TInt Csapi_sendmessage::sendmessage_test3L( CStifItemParser& /*aItem*/ )
|
|
165 |
{
|
|
166 |
int ret=0;
|
|
167 |
ret = sendmessage_test3(0, NULL);
|
|
168 |
|
|
169 |
if(ret==0)
|
|
170 |
return KErrNone;
|
|
171 |
else
|
|
172 |
return KErrGeneral;
|
|
173 |
|
|
174 |
}
|
|
175 |
// -----------------------------------------------------------------------------
|
|
176 |
// Csapi_sendmessage::accum4_testL
|
|
177 |
// Example test method function.
|
|
178 |
// (other items were commented in a header).
|
|
179 |
// -----------------------------------------------------------------------------
|
|
180 |
//
|
|
181 |
TInt Csapi_sendmessage::sendmessage_test4L( CStifItemParser& /*aItem*/ )
|
|
182 |
{
|
|
183 |
int ret=0;
|
|
184 |
ret = sendmessage_test4(0, NULL);
|
|
185 |
|
|
186 |
if(ret==0)
|
|
187 |
return KErrNone;
|
|
188 |
else
|
|
189 |
return KErrGeneral;
|
|
190 |
|
|
191 |
}
|
|
192 |
// -----------------------------------------------------------------------------
|
|
193 |
// Csapi_sendmessage::accum5_testL
|
|
194 |
// Example test method function.
|
|
195 |
// (other items were commented in a header).
|
|
196 |
// -----------------------------------------------------------------------------
|
|
197 |
//
|
|
198 |
TInt Csapi_sendmessage::sendmessage_test5L( CStifItemParser& /*aItem*/ )
|
|
199 |
{
|
|
200 |
int ret=0;
|
|
201 |
ret = sendmessage_test5(0, NULL);
|
|
202 |
|
|
203 |
if(ret==0)
|
|
204 |
return KErrNone;
|
|
205 |
else
|
|
206 |
return KErrGeneral;
|
|
207 |
|
|
208 |
}
|
|
209 |
// -----------------------------------------------------------------------------
|
|
210 |
// Csapi_sendmessage::accum6_testL
|
|
211 |
// Example test method function.
|
|
212 |
// (other items were commented in a header).
|
|
213 |
// -----------------------------------------------------------------------------
|
|
214 |
//
|
|
215 |
TInt Csapi_sendmessage::sendmessage_test6L( CStifItemParser& /*aItem*/ )
|
|
216 |
{
|
|
217 |
int ret=0;
|
|
218 |
ret = sendmessage_test6(0, NULL);
|
|
219 |
|
|
220 |
if(ret==0)
|
|
221 |
return KErrNone;
|
|
222 |
else
|
|
223 |
return KErrNone;
|
|
224 |
|
|
225 |
}
|
|
226 |
// -----------------------------------------------------------------------------
|
|
227 |
// Csapi_sendmessage::accum7_testL
|
|
228 |
// Example test method function.
|
|
229 |
// (other items were commented in a header).
|
|
230 |
// -----------------------------------------------------------------------------
|
|
231 |
//
|
|
232 |
TInt Csapi_sendmessage::sendmessage_test7L( CStifItemParser& /*aItem*/ )
|
|
233 |
{
|
|
234 |
int ret=0;
|
|
235 |
ret = sendmessage_test7(0, NULL);
|
|
236 |
|
|
237 |
if(ret==0)
|
|
238 |
return KErrNone;
|
|
239 |
else
|
|
240 |
return KErrGeneral;
|
|
241 |
|
|
242 |
}
|
|
243 |
// -----------------------------------------------------------------------------
|
|
244 |
// Csapi_sendmessage::accum8_testL
|
|
245 |
// Example test method function.
|
|
246 |
// (other items were commented in a header).
|
|
247 |
// -----------------------------------------------------------------------------
|
|
248 |
//
|
|
249 |
TInt Csapi_sendmessage::sendmessage_test8L( CStifItemParser& /*aItem*/ )
|
|
250 |
{
|
|
251 |
int ret=0;
|
|
252 |
ret = sendmessage_test8(0, NULL);
|
|
253 |
|
|
254 |
if(ret==0)
|
|
255 |
return KErrNone;
|
|
256 |
else
|
|
257 |
return KErrGeneral;
|
|
258 |
|
|
259 |
}
|
|
260 |
// -----------------------------------------------------------------------------
|
|
261 |
// Csapi_sendmessage::accum9_testL
|
|
262 |
// Example test method function.
|
|
263 |
// (other items were commented in a header).
|
|
264 |
// -----------------------------------------------------------------------------
|
|
265 |
//
|
|
266 |
TInt Csapi_sendmessage::sendmessage_test9L( CStifItemParser& /*aItem*/ )
|
|
267 |
{
|
|
268 |
int ret=0;
|
|
269 |
ret = sendmessage_test9(0, NULL);
|
|
270 |
|
|
271 |
if(ret==0)
|
|
272 |
return KErrNone;
|
|
273 |
else
|
|
274 |
return KErrGeneral;
|
|
275 |
|
|
276 |
}
|
|
277 |
// -----------------------------------------------------------------------------
|
|
278 |
// Csapi_sendmessage::accum10_testL
|
|
279 |
// Example test method function.
|
|
280 |
// (other items were commented in a header).
|
|
281 |
// -----------------------------------------------------------------------------
|
|
282 |
//
|
|
283 |
TInt Csapi_sendmessage::sendmessage_test10L( CStifItemParser& /*aItem*/ )
|
|
284 |
{
|
|
285 |
int ret=0;
|
|
286 |
ret = sendmessage_test10(0, NULL);
|
|
287 |
|
|
288 |
if(ret==0)
|
|
289 |
return KErrNone;
|
|
290 |
else
|
|
291 |
return KErrGeneral;
|
|
292 |
|
|
293 |
}
|
|
294 |
// -----------------------------------------------------------------------------
|
|
295 |
// Csapi_sendmessage::?member_function
|
|
296 |
// ?implementation_description
|
|
297 |
// (other items were commented in a header).
|
|
298 |
// -----------------------------------------------------------------------------
|
|
299 |
//
|
|
300 |
/*
|
|
301 |
TInt Csapi_sendmessage::?member_function(
|
|
302 |
CItemParser& aItem )
|
|
303 |
{
|
|
304 |
|
|
305 |
?code
|
|
306 |
|
|
307 |
}
|
|
308 |
*/
|
|
309 |
|
|
310 |
// ========================== OTHER EXPORTED FUNCTIONS =========================
|
|
311 |
// None
|
|
312 |
|
|
313 |
// End of File
|