|
1 /** |
|
2 * Copyright (c) 2002-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 "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 |
|
19 |
|
20 /** |
|
21 @file ParametersStep.h |
|
22 @internalTechnology |
|
23 */ |
|
24 #if (!defined __PARAMETERS_STEP_H__) |
|
25 #define __PARAMETERS_STEP_H__ |
|
26 #include <TestExecuteStepBase.h> |
|
27 #include "tcoredumpserversuitestepbase.h" |
|
28 #include "tcoredumpserversuiteserver.h" |
|
29 #include "optionconfig.h" |
|
30 #include "tcoredumpcommon.h" |
|
31 #include <rm_debug_api.h> |
|
32 |
|
33 using namespace Debug; |
|
34 |
|
35 _LIT(KParametersStep,"ParametersStep"); |
|
36 |
|
37 const TUid KCrashAppUid = { 0x102831E5 }; |
|
38 |
|
39 class CParametersStep : public CTe_coredumpserverSuiteStepBase |
|
40 { |
|
41 public: |
|
42 CParametersStep(); |
|
43 ~CParametersStep(); |
|
44 virtual TVerdict doTestStepPreambleL(); |
|
45 virtual TVerdict doTestStepL(); |
|
46 virtual TVerdict doTestStepPostambleL(); |
|
47 |
|
48 // Please add/modify your class members here: |
|
49 private: |
|
50 |
|
51 RCoreDumpSession iSess; |
|
52 RSecuritySvrSession iSecSess; |
|
53 RFs iFs; |
|
54 |
|
55 void ClientAppL(); |
|
56 |
|
57 //Tests |
|
58 void CrashChildThreadAndTestPostProcL(); |
|
59 void CrashMainThreadAndTestPostProcL(); |
|
60 void CrashChildThreadAndTestPreProcL(); |
|
61 |
|
62 //Utilities |
|
63 void KillProcessAfterCrashL(); |
|
64 void GenerateAndHandleCrashL(const TDesC& aCrashAppParameters, |
|
65 const TUint& aCDSPostProcParam, |
|
66 const TUint& aCDSPreProcParam); |
|
67 |
|
68 void DoConfigureL(const TUint32& aIndex, |
|
69 const TUint32& aUID, |
|
70 const COptionConfig::TParameterSource& aSource, |
|
71 const COptionConfig::TOptionType& aType, |
|
72 const TDesC& aPrompt, |
|
73 const TUint32& aNumOptions, |
|
74 const TDesC& aOptions, |
|
75 const TInt32& aVal, |
|
76 const TDesC& aStrValue ); |
|
77 void MonitorProgressL(); |
|
78 TProcessId IsCrashAppAliveL(); |
|
79 void KillCrashAppL(const TDesC& aProcessName); |
|
80 |
|
81 void ResumeProcessL(TUint64 aPid); |
|
82 TInt GetNumberOfProccessesL(); |
|
83 TInt GetNumberThreadsL(); |
|
84 |
|
85 TBool IsCrashAppMainThreadRunningL(); |
|
86 |
|
87 }; |
|
88 |
|
89 |
|
90 |
|
91 #endif |