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