equal
deleted
inserted
replaced
|
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 |
|
37 class CTestStepBase : public CTestStep |
|
38 { |
|
39 protected: |
|
40 void ResumeL(RProcess& aProcess); |
|
41 void MonitorL(const RProcess& aProcess, const CStartupProperties& aProp); |
|
42 void StartAndMonitorL(RProcess& aProcess, TStartMethod aStartMethod); |
|
43 static void StartViewlessBgApplicationL(const TDesC& aAppName, TThreadId& aTreadId, TRequestStatus& aRequestStatus); |
|
44 static TBool Exists(const TDesC& aProcessName); |
|
45 }; |
|
46 |
|
47 #endif |