|
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 the License "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 @file |
|
20 @internalTechnology |
|
21 @released |
|
22 */ |
|
23 |
|
24 #ifndef RMDEBUG_MULTI_TARGET_H |
|
25 #define RMDEBUG_MULTI_TARGET_H |
|
26 |
|
27 #include "t_rmdebug_app.h" |
|
28 |
|
29 #include <rm_debug_api.h> |
|
30 |
|
31 class CMultiTargetAgent; |
|
32 |
|
33 // |
|
34 // class CRunModeAgent |
|
35 // |
|
36 // The basic run mode agent. |
|
37 // |
|
38 class CMultiTargetAgent : public CBase |
|
39 { |
|
40 public: |
|
41 static CMultiTargetAgent* NewL(); |
|
42 ~CMultiTargetAgent(); |
|
43 void ClientAppL(); |
|
44 |
|
45 TInt LaunchProcess(RProcess& aProcess, TDesC & aExeName, TDesC & aCommandLine ); |
|
46 |
|
47 private: |
|
48 CMultiTargetAgent(); |
|
49 void ConstructL(); |
|
50 |
|
51 void ReportPerformance(void); |
|
52 |
|
53 TInt HelpTicksPerSecond(void); |
|
54 |
|
55 enum TTestMode |
|
56 { |
|
57 //run all the tests |
|
58 EModeAll = 1<<0, |
|
59 //run the specified tests in reverse order |
|
60 EModeReverse = 1<<1, |
|
61 //print out help |
|
62 EModeHelp = 1<<2, |
|
63 //print out help |
|
64 EModeVersion = 1<<3 |
|
65 }; |
|
66 |
|
67 TInt LaunchTargetsInOrderL(); |
|
68 void SetupDebugServerL(); |
|
69 |
|
70 private: |
|
71 |
|
72 #if defined(KERNEL_OOM_TESTING) |
|
73 RKernelLowMemorySecuritySvrSession iServSession; |
|
74 #elif defined (USER_OOM_TESTING) |
|
75 RUserLowMemorySecuritySvrSession iServSession; |
|
76 #else |
|
77 Debug::RSecuritySvrSession iServSession; |
|
78 #endif |
|
79 RSemaphore iAddressGlobSem; |
|
80 |
|
81 TUid iMySid; |
|
82 |
|
83 // Timing information |
|
84 TInt iStartTick; |
|
85 TInt iStopTick; |
|
86 |
|
87 RArray<RBuf> iTargets; |
|
88 TRequestStatus iStatus; |
|
89 Debug::TEventInfo iEventInfo; |
|
90 TPtr8 iEventPtr; |
|
91 }; |
|
92 |
|
93 #endif // RMDEBUG_MULTI_TARGET_H |