|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Definitions for the run mode debug tests |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 #ifndef RMDEBUG_MULTI_TARGET_H |
|
20 #define RMDEBUG_MULTI_TARGET_H |
|
21 |
|
22 #include "t_rmdebug_app.h" |
|
23 |
|
24 #include <rm_debug_api.h> |
|
25 |
|
26 class CMultiTargetAgent; |
|
27 |
|
28 // |
|
29 // class CRunModeAgent |
|
30 // |
|
31 // The basic run mode agent. |
|
32 // |
|
33 class CMultiTargetAgent : public CBase |
|
34 { |
|
35 public: |
|
36 static CMultiTargetAgent* NewL(); |
|
37 ~CMultiTargetAgent(); |
|
38 void ClientAppL(); |
|
39 |
|
40 TInt LaunchProcess(RProcess& aProcess, TDesC & aExeName, TDesC & aCommandLine ); |
|
41 |
|
42 private: |
|
43 CMultiTargetAgent(); |
|
44 void ConstructL(); |
|
45 |
|
46 void ReportPerformance(void); |
|
47 |
|
48 TInt HelpTicksPerSecond(void); |
|
49 |
|
50 enum TTestMode |
|
51 { |
|
52 //run all the tests |
|
53 EModeAll = 1<<0, |
|
54 //run the specified tests in reverse order |
|
55 EModeReverse = 1<<1, |
|
56 //print out help |
|
57 EModeHelp = 1<<2, |
|
58 //print out help |
|
59 EModeVersion = 1<<3 |
|
60 }; |
|
61 |
|
62 TInt LaunchTargetsInOrderL(); |
|
63 void SetupDebugServerL(); |
|
64 |
|
65 private: |
|
66 |
|
67 #if defined(KERNEL_OOM_TESTING) |
|
68 RKernelLowMemorySecuritySvrSession iServSession; |
|
69 #elif defined (USER_OOM_TESTING) |
|
70 RUserLowMemorySecuritySvrSession iServSession; |
|
71 #else |
|
72 Debug::RSecuritySvrSession iServSession; |
|
73 #endif |
|
74 RSemaphore iAddressGlobSem; |
|
75 |
|
76 TUid iMySid; |
|
77 |
|
78 // Timing information |
|
79 TInt iStartTick; |
|
80 TInt iStopTick; |
|
81 |
|
82 RArray<RBuf> iTargets; |
|
83 TRequestStatus iStatus; |
|
84 Debug::TEventInfo iEventInfo; |
|
85 TPtr8 iEventPtr; |
|
86 }; |
|
87 |
|
88 #endif // RMDEBUG_MULTI_TARGET_H |