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) 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 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] - do not remove |
|
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 "tloggingservicetest.h" |
26 |
||
27 |
#include <logcli.h> |
|
28 |
#include <logwrap.h> |
|
29 |
#include "loggingasyncservice.h" |
|
30 |
#include "loggingsyncservice.h" |
|
31 |
#include "loggingfilter.h" |
|
32 |
#include "loggingservice.h" |
|
33 |
#include "loggingevent.h" |
|
34 |
#include "logiter.h" |
|
35 |
||
36 |
// ============================ MEMBER FUNCTIONS =============================== |
|
37 |
||
38 |
// ----------------------------------------------------------------------------- |
|
39 |
// Ctloggingservicetest::Delete |
|
40 |
// Delete here all resources allocated and opened from test methods. |
|
41 |
// Called from destructor. |
|
42 |
// ----------------------------------------------------------------------------- |
|
43 |
// |
|
44 |
void Ctloggingservicetest::Delete() |
|
45 |
{ |
|
46 |
||
47 |
} |
|
48 |
||
49 |
// ----------------------------------------------------------------------------- |
|
50 |
// Ctloggingservicetest::RunMethodL |
|
51 |
// Run specified method. Contains also table of test mothods and their names. |
|
52 |
// ----------------------------------------------------------------------------- |
|
53 |
// |
|
54 |
TInt Ctloggingservicetest::RunMethodL( |
|
55 |
CStifItemParser& aItem ) |
|
56 |
{ |
|
57 |
||
58 |
static TStifFunctionInfo const KFunctions[] = |
|
59 |
{ |
|
60 |
// Copy this line for every implemented function. |
|
61 |
// First string is the function name used in TestScripter script file. |
|
62 |
// Second is the actual implementation member function. |
|
63 |
ENTRY( "AddeventS1", Ctloggingservicetest::AddeventS1 ), |
|
64 |
ENTRY( "AddeventS2", Ctloggingservicetest::AddeventS2 ), |
|
65 |
ENTRY( "AddeventAS1", Ctloggingservicetest::AddeventAS1 ), |
|
66 |
ENTRY( "AddeventAS2", Ctloggingservicetest::AddeventAS2 ), |
|
67 |
ENTRY( "Isbusy", Ctloggingservicetest::Isbusy ), |
|
68 |
||
69 |
||
70 |
ENTRY( "Getlist1", Ctloggingservicetest::Getlist1 ), |
|
71 |
ENTRY( "Getlist2", Ctloggingservicetest::Getlist2 ), |
|
72 |
ENTRY( "Getlist4", Ctloggingservicetest::Getlist4 ), |
|
73 |
ENTRY( "Getevent1", Ctloggingservicetest::Getevent1), |
|
74 |
ENTRY( "Getevent2", Ctloggingservicetest::Getevent2), |
|
75 |
ENTRY( "Getevent3", Ctloggingservicetest::Getevent3), |
|
76 |
ENTRY( "Getevent4", Ctloggingservicetest::Getevent4), |
|
77 |
ENTRY( "Getevent5", Ctloggingservicetest::Getevent5), |
|
78 |
ENTRY( "Getrecent1", Ctloggingservicetest::Getrecent1), |
|
79 |
ENTRY( "Getrecent2", Ctloggingservicetest::Getrecent2), |
|
80 |
||
81 |
||
82 |
||
83 |
||
84 |
||
85 |
||
86 |
||
87 |
||
88 |
||
89 |
//ADD NEW ENTRY HERE |
|
90 |
// [test cases entries] - Do not remove |
|
91 |
||
92 |
}; |
|
93 |
||
94 |
const TInt count = sizeof( KFunctions ) / |
|
95 |
sizeof( TStifFunctionInfo ); |
|
96 |
||
97 |
return RunInternalL( KFunctions, count, aItem ); |
|
98 |
||
99 |
} |
|
100 |
||
101 |
// ----------------------------------------------------------------------------- |
|
102 |
// Ctloggingservicetest::AddeventS1 |
|
103 |
// Example test method function. |
|
104 |
// (other items were commented in a header). |
|
105 |
// ----------------------------------------------------------------------------- |
|
106 |
// |
|
107 |
TInt Ctloggingservicetest::AddeventS1() |
|
108 |
{ |
|
109 |
__UHEAP_MARK; |
|
110 |
TInt ret = addevents1(); |
|
111 |
||
112 |
__UHEAP_MARKEND; |
|
113 |
return ret; |
|
114 |
} |
|
115 |
||
116 |
||
117 |
||
118 |
||
119 |
// ----------------------------------------------------------------------------- |
|
120 |
// Ctloggingservicetest::AddeventS2 |
|
121 |
// Example test method function. |
|
122 |
// (other items were commented in a header). |
|
123 |
// ----------------------------------------------------------------------------- |
|
124 |
// |
|
125 |
TInt Ctloggingservicetest::AddeventS2() |
|
126 |
{ |
|
127 |
__UHEAP_MARK; |
|
128 |
TInt ret = addevents2(); |
|
129 |
||
130 |
__UHEAP_MARKEND; |
|
131 |
return ret; |
|
132 |
} |
|
133 |
||
134 |
||
135 |
// ----------------------------------------------------------------------------- |
|
136 |
// Ctloggingservicetest::AddeventAS1 |
|
137 |
// Example test method function. |
|
138 |
// (other items were commented in a header). |
|
139 |
// ----------------------------------------------------------------------------- |
|
140 |
// |
|
141 |
||
142 |
||
143 |
TInt Ctloggingservicetest::AddeventAS1() |
|
144 |
{ |
|
145 |
__UHEAP_MARK; |
|
146 |
TInt ret = addeventas1(); |
|
147 |
||
148 |
__UHEAP_MARKEND; |
|
149 |
||
150 |
return ret; |
|
151 |
||
152 |
} |
|
153 |
||
154 |
||
155 |
||
156 |
TInt Ctloggingservicetest::AddeventAS2() |
|
157 |
{ |
|
158 |
__UHEAP_MARK; |
|
159 |
TInt ret = addeventas2(); |
|
160 |
||
161 |
__UHEAP_MARKEND; |
|
162 |
||
163 |
return ret; |
|
164 |
||
165 |
} |
|
166 |
||
167 |
||
168 |
TInt Ctloggingservicetest::Isbusy() |
|
169 |
{ |
|
170 |
__UHEAP_MARK; |
|
171 |
TInt ret = isbusy(); |
|
172 |
||
173 |
__UHEAP_MARKEND; |
|
174 |
||
175 |
return ret; |
|
176 |
||
177 |
} |
|
178 |
||
179 |
||
180 |
||
181 |
||
182 |
||
183 |
||
184 |
||
185 |
||
186 |
||
187 |
TInt Ctloggingservicetest::Getlist1() |
|
188 |
{ |
|
189 |
__UHEAP_MARK; |
|
190 |
TInt ret = getlist1(); |
|
191 |
||
192 |
__UHEAP_MARKEND; |
|
193 |
||
194 |
return ret; |
|
195 |
||
196 |
} |
|
197 |
||
198 |
||
199 |
TInt Ctloggingservicetest::Getlist2() |
|
200 |
{ |
|
201 |
__UHEAP_MARK; |
|
202 |
TInt ret = getlist2(); |
|
203 |
||
204 |
__UHEAP_MARKEND; |
|
205 |
||
206 |
return ret; |
|
207 |
||
208 |
} |
|
209 |
||
210 |
||
211 |
||
212 |
||
213 |
||
214 |
||
215 |
TInt Ctloggingservicetest::Getlist4() |
|
216 |
{ |
|
217 |
__UHEAP_MARK; |
|
218 |
TInt ret = getlist4(); |
|
219 |
||
220 |
__UHEAP_MARKEND; |
|
221 |
||
222 |
return ret; |
|
223 |
||
224 |
} |
|
225 |
||
226 |
||
227 |
||
228 |
||
229 |
TInt Ctloggingservicetest::Getevent1() |
|
230 |
{ |
|
231 |
__UHEAP_MARK; |
|
232 |
TInt ret = getevent1(); |
|
233 |
||
234 |
__UHEAP_MARKEND; |
|
235 |
||
236 |
return ret; |
|
237 |
||
238 |
} |
|
239 |
||
240 |
||
241 |
TInt Ctloggingservicetest::Getevent2() |
|
242 |
{ |
|
243 |
__UHEAP_MARK; |
|
244 |
TInt ret = getevent2(); |
|
245 |
||
246 |
__UHEAP_MARKEND; |
|
247 |
||
248 |
return ret; |
|
249 |
||
250 |
} |
|
251 |
||
252 |
||
253 |
||
254 |
TInt Ctloggingservicetest::Getevent3() |
|
255 |
{ |
|
256 |
__UHEAP_MARK; |
|
257 |
TInt ret = getevent3(); |
|
258 |
||
259 |
__UHEAP_MARKEND; |
|
260 |
||
261 |
return ret; |
|
262 |
||
263 |
} |
|
264 |
||
265 |
||
266 |
TInt Ctloggingservicetest::Getevent4() |
|
267 |
{ |
|
268 |
__UHEAP_MARK; |
|
269 |
TInt ret = getevent4(); |
|
270 |
||
271 |
__UHEAP_MARKEND; |
|
272 |
||
273 |
return ret; |
|
274 |
||
275 |
} |
|
276 |
||
277 |
||
278 |
||
279 |
||
280 |
TInt Ctloggingservicetest::Getevent5() |
|
281 |
{ |
|
282 |
__UHEAP_MARK; |
|
283 |
TInt ret = getevent5(); |
|
284 |
||
285 |
__UHEAP_MARKEND; |
|
286 |
||
287 |
return ret; |
|
288 |
||
289 |
} |
|
290 |
||
291 |
TInt Ctloggingservicetest::Getrecent1() |
|
292 |
{ |
|
293 |
__UHEAP_MARK; |
|
294 |
||
295 |
TInt ret = getrecent1(); |
|
296 |
||
297 |
__UHEAP_MARKEND; |
|
298 |
||
299 |
return ret; |
|
300 |
||
301 |
} |
|
302 |
||
303 |
||
304 |
||
305 |
||
306 |
||
307 |
TInt Ctloggingservicetest::Getrecent2() |
|
308 |
{ |
|
309 |
__UHEAP_MARK; |
|
310 |
TInt ret = getrecent2(); |
|
311 |
||
312 |
__UHEAP_MARKEND; |
|
313 |
||
314 |
return ret; |
|
315 |
||
316 |
} |
|
317 |
// [End of File] - Do not remove |