|
1 // Copyright (c) 2007-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __TSYSMON_STEPBASE_H__ |
|
23 #define __TSYSMON_STEPBASE_H__ |
|
24 |
|
25 #include <startup.hrh> |
|
26 #include <test/testexecutestepbase.h> |
|
27 |
|
28 |
|
29 _LIT(KAppFwkSysMonTestPanic, "AppFwkSysMonTestPanic"); |
|
30 |
|
31 // Default throttle time of SysMon (cant be included because it is defined in a cpp file) |
|
32 const TInt KThrottleTime = 15000000; |
|
33 |
|
34 class RProcess; |
|
35 class CStartupProperties; |
|
36 class CSsmStartupProperties; |
|
37 |
|
38 class CTestStepBase : public CTestStep |
|
39 { |
|
40 protected: |
|
41 void ResumeL(RProcess& aProcess); |
|
42 void MonitorL(const RProcess& aProcess, const CStartupProperties& aProp); |
|
43 void MonitorL(const RProcess& aProcess, const CSsmStartupProperties& aProp); |
|
44 void StartAndMonitorUsingStartupPropL(RProcess& aProcess, TStartMethod aStartMethod); |
|
45 void StartAndMonitorUsingSsmStartupPropL(RProcess& aProcess, TStartMethod aStartMethod); |
|
46 static void StartViewlessBgApplicationL(const TDesC& aAppName, TThreadId& aTreadId, TRequestStatus& aRequestStatus); |
|
47 static TBool Exists(const TDesC& aProcessName); |
|
48 private: |
|
49 void AssertServerIsRunning(); |
|
50 }; |
|
51 |
|
52 #endif |