|
1 // Copyright (c) 2010 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_STEPCRITICALNORETRIES_H__ |
|
23 #define __TSYSMON_STEPCRITICALNORETRIES_H__ |
|
24 |
|
25 #include "tsysmon_stepbase.h" |
|
26 #include "sysmontesthelper.h" |
|
27 #include <ssm/ssmstateawaresession.h> |
|
28 #include <s32file.h> |
|
29 |
|
30 //APPFWK-SYSMON-0004 |
|
31 |
|
32 _LIT(KCTestCaseCriticalNoRetries, "CriticalNoRetries"); |
|
33 _LIT(KCTestCaseRestartOS, "RestartOS"); |
|
34 _LIT(KCTestCaseCriticalNoRetriesStep, "CriticalNoRetriesStep"); |
|
35 _LIT(KCTestCaseRestartOSStep, "RestartOSStep"); |
|
36 |
|
37 class CStepOSRestart : public CTestStepBase, public MStateChangeNotificationSubscriber |
|
38 { |
|
39 public: |
|
40 CStepOSRestart(const TDesC& aTestName); |
|
41 void CallStopSchedulerL(); |
|
42 void StateChanged(TSsmState aSsmState); |
|
43 ~CStepOSRestart(); |
|
44 |
|
45 //from CTestStep |
|
46 TVerdict doTestStepL(); |
|
47 protected: |
|
48 RSsmStateAwareSession iSsmStateAwareSess; |
|
49 CAsyncCallBack* iAsyncCallbackForStartTest; |
|
50 CAsyncCallBack* iAsyncCallbackForStopScheduler; |
|
51 |
|
52 private: |
|
53 void TestCriticalNoRetriesL(); |
|
54 void TestRestartOSL(); |
|
55 |
|
56 private: |
|
57 const TDesC& iTestName; |
|
58 }; |
|
59 |
|
60 #endif |