|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <e32svr.h> |
|
19 #include <e32std.h> |
|
20 #include <StifParser.h> |
|
21 #include <Stiftestinterface.h> |
|
22 #include <logcli.h> |
|
23 #include <logwrap.h> |
|
24 |
|
25 #include "loggingasyncservice.h" |
|
26 #include "loggingservice.h" |
|
27 #include "loggingfilter.h" |
|
28 |
|
29 #include "tlogging.h" |
|
30 #include "tlogcallback.h" |
|
31 #include "loggingevent.h" |
|
32 |
|
33 |
|
34 //------------------------------------------------------------------ |
|
35 //Concurrenttest4, core class test for concurrent async calls |
|
36 // RequestNotification and RequestNotification async test |
|
37 //------------------------------------------------------------------ |
|
38 |
|
39 TInt concurrenttest4(void) |
|
40 { |
|
41 TInt ret ; |
|
42 TInt flag ; |
|
43 |
|
44 CLoggingService *LogService = CLoggingService :: NewL() ; |
|
45 CLogsFilter *filter = CLogsFilter :: NewL() ; |
|
46 MLogCallback MyCb ; |
|
47 CLogsEvent *event = CLogsEvent :: NewL() ; |
|
48 |
|
49 LogService->NotifyUpdatesL(2 ,900 , &MyCb) ; |
|
50 |
|
51 ret = LogService->NotifyUpdatesL(3 ,900 , &MyCb) ; |
|
52 |
|
53 |
|
54 |
|
55 if(ret == KErrServerBusy) |
|
56 { |
|
57 flag = KErrNone ; |
|
58 } |
|
59 else |
|
60 { |
|
61 flag = ret ; |
|
62 } |
|
63 |
|
64 |
|
65 delete filter ; |
|
66 delete event ; |
|
67 delete LogService ; |
|
68 |
|
69 return KErrNone ; |
|
70 |
|
71 |
|
72 } |
|
73 |