author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 23 | 50974a8b132e |
parent 5 | 989d2f495d90 |
child 26 | 5d0ec8b709be |
permissions | -rw-r--r-- |
5 | 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 |
|
22 |
#include <e32svr.h> |
|
23 |
#include <e32std.h> |
|
24 |
#include <StifParser.h> |
|
23
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
25 |
#include <StifTestInterface.h> |
5 | 26 |
#include <logcli.h> |
27 |
#include <logwrap.h> |
|
28 |
||
29 |
#include "loggingasyncservice.h" |
|
30 |
#include "loggingservice.h" |
|
31 |
#include "loggingfilter.h" |
|
32 |
#include "loggingsyncservice.h" |
|
33 |
#include "loggingevent.h" |
|
34 |
||
35 |
#include "tlogging.h" |
|
36 |
#include "logiter.h" |
|
37 |
||
38 |
||
39 |
||
40 |
// ============================ MEMBER FUNCTIONS =============================== |
|
41 |
||
42 |
// ----------------------------------------------------------------------------- |
|
43 |
// Ctlogging::Delete |
|
44 |
// Delete here all resources allocated and opened from test methods. |
|
45 |
// Called from destructor. |
|
46 |
// ----------------------------------------------------------------------------- |
|
47 |
// |
|
48 |
void Ctlogging::Delete() |
|
49 |
{ |
|
50 |
||
51 |
} |
|
52 |
||
53 |
// ----------------------------------------------------------------------------- |
|
54 |
// Ctlogging::RunMethodL |
|
55 |
// Run specified method. Contains also table of test mothods and their names. |
|
56 |
// ----------------------------------------------------------------------------- |
|
57 |
// |
|
58 |
TInt Ctlogging::RunMethodL( |
|
59 |
CStifItemParser& aItem ) |
|
60 |
{ |
|
61 |
||
62 |
static TStifFunctionInfo const KFunctions[] = |
|
63 |
{ |
|
64 |
// Copy this line for every implemented function. |
|
65 |
// First string is the function name used in TestScripter script file. |
|
66 |
// Second is the actual implementation member function. |
|
67 |
ENTRY( "GetListSimple", Ctlogging::GetListSimpleL ), |
|
68 |
ENTRY( "GetListAsync", Ctlogging::GetListAsyncL ), |
|
69 |
ENTRY("AddEventSync1", Ctlogging::AddEventSync1 ), |
|
70 |
ENTRY("AddEventSync2", Ctlogging::AddEventSync2 ), |
|
71 |
ENTRY("AddEventSync3", Ctlogging::AddEventSync3 ), |
|
72 |
ENTRY("AddEventSync4", Ctlogging::AddEventSync4 ), |
|
73 |
ENTRY("AddEventSync5", Ctlogging::AddEventSync5 ), |
|
74 |
ENTRY("AddEventAsync1", Ctlogging::AddEventAsync1 ), |
|
75 |
ENTRY("AddEventAsync2", Ctlogging::AddEventAsync2 ), |
|
76 |
ENTRY("AddEventAsync3", Ctlogging::AddEventAsync3 ), |
|
77 |
ENTRY("AddEventAsync4", Ctlogging::AddEventAsync4 ), |
|
78 |
ENTRY("AddEventAsync5", Ctlogging::AddEventAsync5 ), |
|
79 |
ENTRY("DeleteEventSync", Ctlogging::DeleteEventSync ), |
|
80 |
ENTRY("DeleteEventAsync", Ctlogging::DeleteEventAsync ), |
|
81 |
ENTRY( "ConcurrentTest1", Ctlogging::ConcurrentTestL1 ), |
|
82 |
ENTRY( "ConcurrentTest2", Ctlogging::ConcurrentTestL2 ), |
|
83 |
ENTRY( "ConcurrentTest3", Ctlogging::ConcurrentTestL3 ), |
|
84 |
ENTRY( "ConcurrentTest4", Ctlogging::ConcurrentTestL4 ), |
|
85 |
ENTRY( "ConcurrentTest5", Ctlogging::ConcurrentTestL5 ), |
|
86 |
ENTRY( "ConcurrentTest6", Ctlogging::ConcurrentTestL6 ), |
|
87 |
||
88 |
||
89 |
ENTRY( "GetRecentList1", Ctlogging::GetRecentListL1 ), |
|
90 |
ENTRY( "GetRecentList2", Ctlogging::GetRecentListL2 ), |
|
91 |
ENTRY( "GetRecentList3", Ctlogging::GetRecentListL3 ), |
|
92 |
||
93 |
ENTRY( "GetEvent1", Ctlogging::GetEventL1 ), |
|
94 |
ENTRY( "GetEvent2", Ctlogging::GetEventL2 ), |
|
95 |
ENTRY( "GetEvent3", Ctlogging::GetEventL3 ), |
|
96 |
||
97 |
||
98 |
||
99 |
}; |
|
100 |
||
101 |
const TInt count = sizeof( KFunctions ) / |
|
102 |
sizeof( TStifFunctionInfo ); |
|
103 |
||
104 |
return RunInternalL( KFunctions, count, aItem ); |
|
105 |
||
106 |
} |
|
107 |
||
108 |
||
109 |
//-------------------------------------------------------------------------------- |
|
110 |
//Ctlogging::AddEventTest |
|
111 |
// Test and simple add event |
|
112 |
//-------------------------------------------------------------------------------- |
|
113 |
||
114 |
TInt Ctlogging :: AddEventSync1(CStifItemParser& aItem ) |
|
115 |
{ |
|
116 |
||
117 |
_LIT(KOwnEventSubject, "RandomLogEvent"); |
|
118 |
_LIT(KOwnEventRemoteParty, "OwnContact"); |
|
119 |
||
120 |
_LIT(KTLocTest ,"AddEventSync1"); |
|
121 |
iLog->Log(KTLocTest) ; |
|
122 |
||
123 |
||
124 |
__UHEAP_MARK ; |
|
125 |
||
126 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
127 |
||
128 |
CLogsEvent* event = CLogsEvent::NewL(); |
|
129 |
||
130 |
// Sets the duration of the event in seconds. |
|
131 |
// Randomize something between 0-299 |
|
132 |
||
133 |
event->SetDuration(300); |
|
134 |
||
135 |
TBuf<KLogMaxDirectionLength> direction; |
|
136 |
||
137 |
// Direction of the event is randomized |
|
138 |
||
139 |
TInt dirID = R_LOG_DIR_IN; |
|
140 |
TUid eventTypeID = KLogCallEventTypeUid; |
|
141 |
event->SetEventType(eventTypeID); |
|
142 |
event->SetSubject(KOwnEventSubject); |
|
143 |
event->SetDirection(R_LOG_DIR_IN) ; |
|
144 |
TTime time; // creation time from the device clock |
|
145 |
time.HomeTime(); |
|
146 |
event->SetTime(time); |
|
147 |
||
148 |
TBuf<KLogMaxNumberLength> number; // Randomize number |
|
149 |
number.AppendNum(7000000); |
|
150 |
event->SetNumber(number); |
|
151 |
event->SetRemoteParty(KOwnEventRemoteParty); |
|
152 |
||
153 |
TInt ret=LogService->AddEventL(event) ; |
|
154 |
||
155 |
TInt count = 0 ; |
|
156 |
delete event ; |
|
157 |
delete LogService ; |
|
158 |
||
159 |
__UHEAP_MARKEND ; |
|
160 |
||
161 |
if(ret > 0) |
|
162 |
{ |
|
163 |
return KErrNone; |
|
164 |
} |
|
165 |
return ret ; |
|
166 |
} |
|
167 |
||
168 |
//-------------------------------------------------------------------------------- |
|
169 |
//Ctlogging::AddEventTest |
|
170 |
// adding an empty event |
|
171 |
//-------------------------------------------------------------------------------- |
|
172 |
||
173 |
||
174 |
||
175 |
TInt Ctlogging :: AddEventSync2(CStifItemParser& aItem ) |
|
176 |
{ |
|
177 |
||
178 |
_LIT(KOwnEventSubject, "RandomLogEvent"); |
|
179 |
_LIT(KOwnEventRemoteParty, "OwnContact"); |
|
180 |
||
181 |
_LIT(KTLocTest ,"AddEventSync2"); |
|
182 |
iLog->Log(KTLocTest) ; |
|
183 |
||
184 |
||
185 |
__UHEAP_MARK ; |
|
186 |
||
187 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
188 |
||
189 |
CLogsEvent* event = CLogsEvent::NewL(); |
|
190 |
||
191 |
TInt ret = LogService->AddEventL(event) ; |
|
192 |
TInt count = 0 ; |
|
193 |
delete event ; |
|
194 |
delete LogService ; |
|
195 |
__UHEAP_MARKEND ; |
|
196 |
||
197 |
if(ret < 0) |
|
198 |
{ |
|
199 |
return KErrNone ; |
|
200 |
} |
|
201 |
||
202 |
return ret ; |
|
203 |
} |
|
204 |
||
205 |
//-------------------------------------------------------------------------------- |
|
206 |
//Ctlogging::AddEventTest |
|
207 |
// adding an event with out direction |
|
208 |
//-------------------------------------------------------------------------------- |
|
209 |
||
210 |
TInt Ctlogging :: AddEventSync3(CStifItemParser& aItem ) |
|
211 |
{ |
|
212 |
||
213 |
_LIT(KOwnEventSubject, "RandomLogEvent"); |
|
214 |
_LIT(KOwnEventRemoteParty, "OwnContact"); |
|
215 |
||
216 |
_LIT(KTLocTest ,"AddEventSync3"); |
|
217 |
iLog->Log(KTLocTest) ; |
|
218 |
||
219 |
||
220 |
__UHEAP_MARK ; |
|
221 |
||
222 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
223 |
||
224 |
CLogsEvent* event = CLogsEvent::NewL(); |
|
225 |
||
226 |
// Sets the duration of the event in seconds. |
|
227 |
// Randomize something between 0-299 |
|
228 |
||
229 |
event->SetDuration(300); |
|
230 |
||
231 |
TUid eventTypeID = KLogCallEventTypeUid; |
|
232 |
event->SetEventType(eventTypeID); |
|
233 |
event->SetSubject(KOwnEventSubject); |
|
234 |
TTime time; // creation time from the device clock |
|
235 |
time.HomeTime(); |
|
236 |
event->SetTime(time); |
|
237 |
||
238 |
TBuf<KLogMaxNumberLength> number; // Randomize number |
|
239 |
number.AppendNum(7000000); |
|
240 |
event->SetNumber(number); |
|
241 |
event->SetRemoteParty(KOwnEventRemoteParty); |
|
242 |
||
243 |
TInt ret=LogService->AddEventL(event) ; |
|
244 |
TInt count = 0 ; |
|
245 |
delete event ; |
|
246 |
delete LogService ; |
|
247 |
||
248 |
__UHEAP_MARKEND ; |
|
249 |
||
250 |
if(ret > 0) |
|
251 |
{ |
|
252 |
return KErrNone; |
|
253 |
} |
|
254 |
return ret ; |
|
255 |
||
256 |
} |
|
257 |
||
258 |
//-------------------------------------------------------------------------------- |
|
259 |
//Ctlogging::AddEventTest |
|
260 |
// adding an event with out subject |
|
261 |
//-------------------------------------------------------------------------------- |
|
262 |
||
263 |
TInt Ctlogging :: AddEventSync4(CStifItemParser& aItem ) |
|
264 |
{ |
|
265 |
||
266 |
_LIT(KOwnEventRemoteParty, "OwnContact"); |
|
267 |
||
268 |
_LIT(KTLocTest ,"AddEventSync4"); |
|
269 |
iLog->Log(KTLocTest) ; |
|
270 |
||
271 |
||
272 |
__UHEAP_MARK ; |
|
273 |
||
274 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
275 |
||
276 |
CLogsEvent* event = CLogsEvent::NewL(); |
|
277 |
||
278 |
// Sets the duration of the event in seconds. |
|
279 |
// Randomize something between 0-299 |
|
280 |
||
281 |
event->SetDuration(300); |
|
282 |
||
283 |
TBuf<KLogMaxDirectionLength> direction; |
|
284 |
||
285 |
// Direction of the event is randomized |
|
286 |
||
287 |
TInt dirID = R_LOG_DIR_IN; |
|
288 |
TUid eventTypeID = KLogCallEventTypeUid; |
|
289 |
event->SetEventType(eventTypeID); |
|
290 |
TTime time; // creation time from the device clock |
|
291 |
time.HomeTime(); |
|
292 |
event->SetTime(time); |
|
293 |
||
294 |
TBuf<KLogMaxNumberLength> number; // Randomize number |
|
295 |
number.AppendNum(7000000); |
|
296 |
event->SetNumber(number); |
|
297 |
event->SetRemoteParty(KOwnEventRemoteParty); |
|
298 |
||
299 |
TInt ret=LogService->AddEventL(event) ; |
|
300 |
TInt count = 0 ; |
|
301 |
delete event ; |
|
302 |
delete LogService ; |
|
303 |
__UHEAP_MARKEND ; |
|
304 |
||
305 |
if(ret > 0) |
|
306 |
{ |
|
307 |
return KErrNone; |
|
308 |
} |
|
309 |
return ret ; |
|
310 |
} |
|
311 |
||
312 |
//-------------------------------------------------------------------------------- |
|
313 |
//Ctlogging::AddEventTest |
|
314 |
// adding an event with out event type |
|
315 |
//-------------------------------------------------------------------------------- |
|
316 |
||
317 |
TInt Ctlogging :: AddEventSync5(CStifItemParser& aItem ) |
|
318 |
{ |
|
319 |
||
320 |
_LIT(KOwnEventSubject, "RandomLogEvent"); |
|
321 |
_LIT(KOwnEventRemoteParty, "OwnContact"); |
|
322 |
||
323 |
_LIT(KTLocTest ,"AddEventSync5"); |
|
324 |
iLog->Log(KTLocTest) ; |
|
325 |
||
326 |
||
327 |
__UHEAP_MARK ; |
|
328 |
||
329 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
330 |
||
331 |
CLogsEvent* event = CLogsEvent::NewL(); |
|
332 |
||
333 |
// Sets the duration of the event in seconds. |
|
334 |
// Randomize something between 0-299 |
|
335 |
||
336 |
event->SetDuration(300); |
|
337 |
||
338 |
TBuf<KLogMaxDirectionLength> direction; |
|
339 |
||
340 |
// Direction of the event is randomized |
|
341 |
||
342 |
TInt dirID = R_LOG_DIR_IN; |
|
343 |
event->SetSubject(KOwnEventSubject); |
|
344 |
TTime time; // creation time from the device clock |
|
345 |
time.HomeTime(); |
|
346 |
event->SetTime(time); |
|
347 |
||
348 |
TBuf<KLogMaxNumberLength> number; // Randomize number |
|
349 |
number.AppendNum(7000000); |
|
350 |
event->SetNumber(number); |
|
351 |
event->SetRemoteParty(KOwnEventRemoteParty); |
|
352 |
||
353 |
TInt ret=LogService->AddEventL(event) ; |
|
354 |
TInt count = 0 ; |
|
355 |
delete event ; |
|
356 |
delete LogService ; |
|
357 |
__UHEAP_MARKEND ; |
|
358 |
||
359 |
if(ret < 0) |
|
360 |
{ |
|
361 |
return KErrNone; |
|
362 |
} |
|
363 |
return ret ; |
|
364 |
} |
|
365 |
||
366 |
//-------------------------------------------------------------------------------- |
|
367 |
//Ctlogging::AddEventTest |
|
368 |
// async.. |
|
369 |
//-------------------------------------------------------------------------------- |
|
370 |
||
371 |
||
372 |
||
373 |
||
374 |
TInt Ctlogging :: AddEventAsync1(CStifItemParser& aItem) |
|
375 |
{ |
|
376 |
_LIT(KLogTest , "AddEventAsync1") ; |
|
377 |
iLog->Log(KLogTest) ; |
|
378 |
||
379 |
__UHEAP_MARK ; |
|
380 |
TInt ret = AddEventasync1() ; |
|
381 |
__UHEAP_MARKEND ; |
|
382 |
return ret ; |
|
383 |
} |
|
384 |
||
385 |
||
386 |
//-------------------------------------------------------------------------------- |
|
387 |
//Ctlogging::AddEventTest |
|
388 |
// add an empty event |
|
389 |
//-------------------------------------------------------------------------------- |
|
390 |
||
391 |
||
392 |
||
393 |
||
394 |
TInt Ctlogging :: AddEventAsync2(CStifItemParser& aItem) |
|
395 |
{ |
|
396 |
_LIT(KLogTest , "AddEventAsync2") ; |
|
397 |
iLog->Log(KLogTest) ; |
|
398 |
||
399 |
__UHEAP_MARK ; |
|
400 |
TInt ret = AddEventasync2() ; |
|
401 |
__UHEAP_MARKEND ; |
|
402 |
return ret ; |
|
403 |
} |
|
404 |
||
405 |
||
406 |
//-------------------------------------------------------------------------------- |
|
407 |
//Ctlogging::AddEventTest |
|
408 |
// aad an event with out direction |
|
409 |
//-------------------------------------------------------------------------------- |
|
410 |
||
411 |
||
412 |
||
413 |
||
414 |
TInt Ctlogging :: AddEventAsync3(CStifItemParser& aItem) |
|
415 |
{ |
|
416 |
_LIT(KLogTest , "AddEventAsync3") ; |
|
417 |
iLog->Log(KLogTest) ; |
|
418 |
||
419 |
__UHEAP_MARK ; |
|
420 |
TInt ret = AddEventasync3() ; |
|
421 |
__UHEAP_MARKEND ; |
|
422 |
return ret ; |
|
423 |
} |
|
424 |
||
425 |
//-------------------------------------------------------------------------------- |
|
426 |
//Ctlogging::AddEventTest |
|
427 |
// add an event with out subject |
|
428 |
//-------------------------------------------------------------------------------- |
|
429 |
||
430 |
||
431 |
||
432 |
||
433 |
TInt Ctlogging :: AddEventAsync4(CStifItemParser& aItem) |
|
434 |
{ |
|
435 |
_LIT(KLogTest , "AddEventAsync4") ; |
|
436 |
iLog->Log(KLogTest) ; |
|
437 |
||
438 |
__UHEAP_MARK ; |
|
439 |
TInt ret = AddEventasync4() ; |
|
440 |
__UHEAP_MARKEND ; |
|
441 |
return ret ; |
|
442 |
} |
|
443 |
||
444 |
||
445 |
//-------------------------------------------------------------------------------- |
|
446 |
//Ctlogging::AddEventTest |
|
447 |
// add an eventn with out event type |
|
448 |
//-------------------------------------------------------------------------------- |
|
449 |
||
450 |
||
451 |
TInt Ctlogging :: AddEventAsync5(CStifItemParser& aItem) |
|
452 |
{ |
|
453 |
_LIT(KLogTest , "AddEventAsync5") ; |
|
454 |
iLog->Log(KLogTest) ; |
|
455 |
||
456 |
__UHEAP_MARK ; |
|
457 |
TInt ret = AddEventasync5() ; |
|
458 |
__UHEAP_MARKEND ; |
|
459 |
return ret ; |
|
460 |
} |
|
461 |
//----------------------------------------------------------------------------- |
|
462 |
// Simple GetListTest |
|
463 |
//----------------------------------------------------------------------------- |
|
464 |
||
465 |
TInt Ctlogging :: GetListSimpleL(CStifItemParser& aItem ) |
|
466 |
{ |
|
467 |
_LIT(KLogTest , "GetListSimple") ; |
|
468 |
iLog->Log(KLogTest) ; |
|
469 |
||
470 |
__UHEAP_MARK ; |
|
471 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
472 |
||
473 |
CLogsFilter *LogFilter = CLogsFilter :: NewL() ; |
|
474 |
||
475 |
||
476 |
LogFilter->SetRequestType(EReadEvents) ; |
|
477 |
||
478 |
CLogIter *iter = LogService->GetListL(LogFilter) ; |
|
479 |
||
480 |
TInt count = 0 ; |
|
481 |
CLogsEvent *aEvent ; |
|
482 |
||
483 |
||
484 |
while(aEvent = iter->NextL()) |
|
485 |
{ |
|
486 |
delete aEvent ; |
|
487 |
} |
|
488 |
||
489 |
||
490 |
delete iter ; |
|
491 |
delete LogFilter ; |
|
492 |
delete LogService ; |
|
493 |
__UHEAP_MARKEND ; |
|
494 |
return KErrNone ; |
|
495 |
} |
|
496 |
||
497 |
//----------------------------------------------------------------- |
|
498 |
// GetListAsync Test |
|
499 |
//---------------------------------------------------------------- |
|
500 |
||
501 |
TInt Ctlogging :: GetListAsyncL(CStifItemParser& aItem) |
|
502 |
{ |
|
503 |
_LIT(KLogTest , "GetListAsyncTest") ; |
|
504 |
iLog->Log(KLogTest) ; |
|
505 |
||
506 |
__UHEAP_MARK ; |
|
507 |
TInt ret = getlistasyncL1() ; |
|
508 |
__UHEAP_MARKEND ; |
|
509 |
return ret ; |
|
510 |
||
511 |
||
512 |
} |
|
513 |
||
514 |
TInt Ctlogging :: DeleteEventSync(CStifItemParser& aItem ) |
|
515 |
{ |
|
516 |
||
517 |
||
518 |
_LIT(KTLocTest ,"DeleteEventSync"); |
|
519 |
iLog->Log(KTLocTest) ; |
|
520 |
||
521 |
__UHEAP_MARK ; |
|
522 |
||
523 |
TInt ret= DeleteEventsync(); |
|
524 |
__UHEAP_MARKEND ; |
|
525 |
return ret; |
|
526 |
} |
|
527 |
||
528 |
||
529 |
TInt Ctlogging :: DeleteEventAsync(CStifItemParser& aItem ) |
|
530 |
{ |
|
531 |
||
532 |
||
533 |
_LIT(KTLocTest ,"DeleteEventAsync"); |
|
534 |
iLog->Log(KTLocTest) ; |
|
535 |
||
536 |
__UHEAP_MARK ; |
|
537 |
||
538 |
TInt ret= DeleteEventasync(); |
|
539 |
__UHEAP_MARKEND ; |
|
540 |
return ret; |
|
541 |
} |
|
542 |
//------------------------------------------------------------------- |
|
543 |
//Concurrent Call test (Add and GetList) |
|
544 |
//------------------------------------------------------------------- |
|
545 |
||
546 |
TInt Ctlogging :: ConcurrentTestL1(CStifItemParser& aItem) |
|
547 |
{ |
|
548 |
__UHEAP_MARK ; |
|
549 |
TInt ret = concurrenttest1() ; |
|
550 |
__UHEAP_MARKEND ; |
|
551 |
return ret ; |
|
552 |
||
553 |
||
554 |
} |
|
555 |
||
556 |
||
557 |
//------------------------------------------------------------------- |
|
558 |
//Concurrent Call test (GetList and requestNotification) |
|
559 |
//------------------------------------------------------------------- |
|
560 |
||
561 |
TInt Ctlogging :: ConcurrentTestL2(CStifItemParser& aItem) |
|
562 |
{ |
|
563 |
__UHEAP_MARK ; |
|
564 |
TInt ret = concurrenttest2() ; |
|
565 |
__UHEAP_MARKEND ; |
|
566 |
return ret ; |
|
567 |
||
568 |
||
569 |
} |
|
570 |
||
571 |
//------------------------------------------------------------------- |
|
572 |
//Concurrent Call test (GetList and requestNotification) |
|
573 |
//------------------------------------------------------------------- |
|
574 |
||
575 |
TInt Ctlogging :: ConcurrentTestL3(CStifItemParser& aItem) |
|
576 |
{ |
|
577 |
__UHEAP_MARK ; |
|
578 |
TInt ret = concurrenttest3() ; |
|
579 |
__UHEAP_MARKEND ; |
|
580 |
return ret ; |
|
581 |
||
582 |
||
583 |
} |
|
584 |
||
585 |
//------------------------------------------------------------------- |
|
586 |
//Concurrent Call test (GetList and getlist) |
|
587 |
//------------------------------------------------------------------- |
|
588 |
||
589 |
TInt Ctlogging :: ConcurrentTestL4(CStifItemParser& aItem) |
|
590 |
{ |
|
591 |
__UHEAP_MARK ; |
|
592 |
TInt ret = concurrenttest4() ; |
|
593 |
__UHEAP_MARKEND ; |
|
594 |
return ret ; |
|
595 |
||
596 |
||
597 |
} |
|
598 |
||
599 |
//------------------------------------------------------------------- |
|
600 |
//Concurrent Call test (Add and Add) |
|
601 |
//------------------------------------------------------------------- |
|
602 |
||
603 |
TInt Ctlogging :: ConcurrentTestL5(CStifItemParser& aItem) |
|
604 |
{ |
|
605 |
__UHEAP_MARK ; |
|
606 |
TInt ret = concurrenttest5() ; |
|
607 |
__UHEAP_MARKEND ; |
|
608 |
return ret ; |
|
609 |
||
610 |
||
611 |
} |
|
612 |
||
613 |
//------------------------------------------------------------------- |
|
614 |
//Concurrent Call test (Delet and Delete) |
|
615 |
//------------------------------------------------------------------- |
|
616 |
||
617 |
TInt Ctlogging :: ConcurrentTestL6(CStifItemParser& aItem) |
|
618 |
{ |
|
619 |
__UHEAP_MARK ; |
|
620 |
TInt ret = concurrenttest6() ; |
|
621 |
__UHEAP_MARKEND ; |
|
622 |
return ret ; |
|
623 |
||
624 |
||
625 |
} |
|
626 |
//------------------------------------------------------------------- |
|
627 |
//GetRecentList Test synchronous |
|
628 |
//------------------------------------------------------------------- |
|
629 |
||
630 |
TInt Ctlogging :: GetRecentListL1(CStifItemParser& aItem) |
|
631 |
{ |
|
632 |
__UHEAP_MARK ; |
|
633 |
TInt ret = getRecentList1() ; |
|
634 |
__UHEAP_MARKEND ; |
|
635 |
return ret ; |
|
636 |
||
637 |
||
638 |
} |
|
639 |
||
640 |
||
641 |
//------------------------------------------------------------------- |
|
642 |
//GetList test asynchronous test |
|
643 |
//------------------------------------------------------------------- |
|
644 |
||
645 |
TInt Ctlogging :: GetRecentListL2(CStifItemParser& aItem) |
|
646 |
{ |
|
647 |
__UHEAP_MARK ; |
|
648 |
TInt ret = getRecentList2() ; |
|
649 |
__UHEAP_MARKEND ; |
|
650 |
return ret ; |
|
651 |
||
652 |
||
653 |
} |
|
654 |
||
655 |
//------------------------------------------------------------------- |
|
656 |
//GetEvent2 , test for getevent based on event id |
|
657 |
// this is a synchronous call test |
|
658 |
//------------------------------------------------------------------- |
|
659 |
||
660 |
TInt Ctlogging :: GetEventL1(CStifItemParser& aItem) |
|
661 |
{ |
|
662 |
__UHEAP_MARK ; |
|
663 |
TInt ret = getEvent1() ; |
|
664 |
__UHEAP_MARKEND ; |
|
665 |
return ret ; |
|
666 |
||
667 |
||
668 |
} |
|
669 |
||
670 |
//--------------------------------------------------------------------- |
|
671 |
// GetEvent2 , test for getevent based on event id |
|
672 |
// this is a asynchronous call test |
|
673 |
//--------------------------------------------------------------------- |
|
674 |
||
675 |
||
676 |
TInt Ctlogging :: GetEventL2(CStifItemParser& aItem) |
|
677 |
{ |
|
678 |
__UHEAP_MARK ; |
|
679 |
TInt ret = getEvent2() ; |
|
680 |
__UHEAP_MARKEND ; |
|
681 |
return ret ; |
|
682 |
||
683 |
||
684 |
} |
|
685 |
||
686 |
//--------------------------------------------------------------------- |
|
687 |
// GetEvent3, test for getevent, with invalid event id |
|
688 |
// this is a asynchronous call test |
|
689 |
//--------------------------------------------------------------------- |
|
690 |
||
691 |
||
692 |
TInt Ctlogging :: GetEventL3(CStifItemParser& aItem) |
|
693 |
{ |
|
694 |
__UHEAP_MARK ; |
|
695 |
TInt ret = getEvent3() ; |
|
696 |
__UHEAP_MARKEND ; |
|
697 |
return ret ; |
|
698 |
||
699 |
||
700 |
} |
|
701 |
||
702 |
//--------------------------------------------------------------------- |
|
703 |
// GetEvent4, test for getrecentevent, with an empty filter |
|
704 |
//--------------------------------------------------------------------- |
|
705 |
||
706 |
||
707 |
TInt Ctlogging :: GetRecentListL3(CStifItemParser& aItem) |
|
708 |
{ |
|
709 |
__UHEAP_MARK ; |
|
710 |
TInt ret = getRecentlist3() ; |
|
711 |
__UHEAP_MARKEND ; |
|
712 |
return ret ; |
|
713 |
||
714 |
||
715 |
} |