author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
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:
19
diff
changeset
|
24 |
#include <StifTestInterface.h> |
19 | 25 |
#include "getheader.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_getheader::Delete |
|
80 |
// Delete here all resources allocated and opened from test methods. |
|
81 |
// Called from destructor. |
|
82 |
// ----------------------------------------------------------------------------- |
|
83 |
// |
|
84 |
void Csapi_getheader::Delete() |
|
85 |
{ |
|
86 |
||
87 |
} |
|
88 |
||
89 |
// ----------------------------------------------------------------------------- |
|
90 |
// Csapi_getheader::RunMethodL |
|
91 |
// Run specified method. Contains also table of test mothods and their names. |
|
92 |
// ----------------------------------------------------------------------------- |
|
93 |
// |
|
94 |
TInt Csapi_getheader::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( "getheader_test1", Csapi_getheader::getheader_test1L ), |
|
105 |
ENTRY( "getheader_test2", Csapi_getheader::getheader_test2L ), |
|
106 |
ENTRY( "getheader_test3", Csapi_getheader::getheader_test3L ), |
|
107 |
ENTRY( "getheader_test4", Csapi_getheader::getheader_test4L ), |
|
108 |
ENTRY( "getheader_test5", Csapi_getheader::getheader_test5L ), |
|
109 |
ENTRY( "getheader_test6", Csapi_getheader::getheader_test6L ), |
|
110 |
ENTRY( "getheader_test7", Csapi_getheader::getheader_test7L ), |
|
111 |
||
112 |
}; |
|
113 |
||
114 |
const TInt count = sizeof( KFunctions ) / |
|
115 |
sizeof( TStifFunctionInfo ); |
|
116 |
||
117 |
return RunInternalL( KFunctions, count, aItem ); |
|
118 |
||
119 |
} |
|
120 |
||
121 |
// ----------------------------------------------------------------------------- |
|
122 |
// Csapi_getheader::getheader1_testL |
|
123 |
// Example test method function. |
|
124 |
// (other items were commented in a header). |
|
125 |
// ----------------------------------------------------------------------------- |
|
126 |
// |
|
127 |
TInt Csapi_getheader::getheader_test1L( CStifItemParser& /*aItem*/ ) |
|
128 |
{ |
|
129 |
int ret=0; |
|
130 |
ret = getheader_test1(0, NULL); |
|
131 |
||
132 |
if(ret==0) |
|
133 |
return KErrNone; |
|
134 |
else |
|
135 |
return KErrGeneral; |
|
136 |
||
137 |
} |
|
138 |
// ----------------------------------------------------------------------------- |
|
139 |
// Csapi_getheader::getheader2_testL |
|
140 |
// Example test method function. |
|
141 |
// (other items were commented in a header). |
|
142 |
// ----------------------------------------------------------------------------- |
|
143 |
// |
|
144 |
TInt Csapi_getheader::getheader_test2L( CStifItemParser& /*aItem*/ ) |
|
145 |
{ |
|
146 |
int ret=0; |
|
147 |
ret = getheader_test2(0, NULL); |
|
148 |
||
149 |
if(ret==0) |
|
150 |
return KErrNone; |
|
151 |
else |
|
152 |
return KErrGeneral; |
|
153 |
||
154 |
} |
|
155 |
// ----------------------------------------------------------------------------- |
|
156 |
// Csapi_getheader::getheader3_testL |
|
157 |
// Example test method function. |
|
158 |
// (other items were commented in a header). |
|
159 |
// ----------------------------------------------------------------------------- |
|
160 |
// |
|
161 |
TInt Csapi_getheader::getheader_test3L( CStifItemParser& /*aItem*/ ) |
|
162 |
{ |
|
163 |
int ret=0; |
|
164 |
ret = getheader_test3(0, NULL); |
|
165 |
||
166 |
if(ret==0) |
|
167 |
return KErrNone; |
|
168 |
else |
|
169 |
return KErrGeneral; |
|
170 |
||
171 |
} |
|
172 |
// ----------------------------------------------------------------------------- |
|
173 |
// Csapi_getheader::getheader4_testL |
|
174 |
// Example test method function. |
|
175 |
// (other items were commented in a header). |
|
176 |
// ----------------------------------------------------------------------------- |
|
177 |
// |
|
178 |
TInt Csapi_getheader::getheader_test4L( CStifItemParser& /*aItem*/ ) |
|
179 |
{ |
|
180 |
int ret=0; |
|
181 |
ret = getheader_test4(0, NULL); |
|
182 |
||
183 |
if(ret==0) |
|
184 |
return KErrNone; |
|
185 |
else |
|
186 |
return KErrGeneral; |
|
187 |
||
188 |
} |
|
189 |
// ----------------------------------------------------------------------------- |
|
190 |
// Csapi_getheader::getheader4_testL |
|
191 |
// Example test method function. |
|
192 |
// (other items were commented in a header). |
|
193 |
// ----------------------------------------------------------------------------- |
|
194 |
// |
|
195 |
TInt Csapi_getheader::getheader_test5L( CStifItemParser& /*aItem*/ ) |
|
196 |
{ |
|
197 |
int ret=0; |
|
198 |
ret = getheader_test5(0, NULL); |
|
199 |
||
200 |
if(ret==0) |
|
201 |
return KErrNone; |
|
202 |
else |
|
203 |
return KErrGeneral; |
|
204 |
||
205 |
} |
|
206 |
// ----------------------------------------------------------------------------- |
|
207 |
// Csapi_getheader::getheader4_testL |
|
208 |
// Example test method function. |
|
209 |
// (other items were commented in a header). |
|
210 |
// ----------------------------------------------------------------------------- |
|
211 |
// |
|
212 |
TInt Csapi_getheader::getheader_test6L( CStifItemParser& /*aItem*/ ) |
|
213 |
{ |
|
214 |
int ret=0; |
|
215 |
ret = getheader_test6(0, NULL); |
|
216 |
||
217 |
if(ret==0) |
|
218 |
return KErrNone; |
|
219 |
else |
|
220 |
return KErrGeneral; |
|
221 |
||
222 |
} |
|
223 |
// ----------------------------------------------------------------------------- |
|
224 |
// Csapi_getheader::getheader4_testL |
|
225 |
// Example test method function. |
|
226 |
// (other items were commented in a header). |
|
227 |
// ----------------------------------------------------------------------------- |
|
228 |
// |
|
229 |
TInt Csapi_getheader::getheader_test7L( CStifItemParser& /*aItem*/ ) |
|
230 |
{ |
|
231 |
int ret=0; |
|
232 |
ret = getheader_test7(0, NULL); |
|
233 |
||
234 |
if(ret==0) |
|
235 |
return KErrNone; |
|
236 |
else |
|
237 |
return KErrGeneral; |
|
238 |
||
239 |
} |
|
240 |
// ----------------------------------------------------------------------------- |
|
241 |
// Csapi_getheader::?member_function |
|
242 |
// ?implementation_description |
|
243 |
// (other items were commented in a header). |
|
244 |
// ----------------------------------------------------------------------------- |
|
245 |
// |
|
246 |
/* |
|
247 |
TInt Csapi_getheader::?member_function( |
|
248 |
CItemParser& aItem ) |
|
249 |
{ |
|
250 |
||
251 |
?code |
|
252 |
||
253 |
} |
|
254 |
*/ |
|
255 |
||
256 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
257 |
// None |
|
258 |
||
259 |
// End of File |