sysstatemgmt/systemstarter/test/tstartsafe/src/tstartsafe_procfailsysrestart.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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 __TSTARTSAFE_PROCFAILSYSRESTART_H__
       
    23 #define __TSTARTSAFE_PROCFAILSYSRESTART_H__
       
    24 
       
    25 
       
    26 #include <test/testexecutestepbase.h>
       
    27 #include <savenotf.h>
       
    28 
       
    29 
       
    30 //APPFWK-STARTSAFE-0013
       
    31 _LIT(KCTestCaseProcFailSysRestart, "ProcFailSysRestart");
       
    32 
       
    33 class CAppFwkStartSafeTestStepProcFailSysRestart : public CTestStep, public MSaveObserver
       
    34 	{
       
    35 	
       
    36 public:
       
    37 	CAppFwkStartSafeTestStepProcFailSysRestart();
       
    38 	~CAppFwkStartSafeTestStepProcFailSysRestart();
       
    39 
       
    40 	void DoStartApplicationL();
       
    41 	
       
    42 	// from MSaveObserver
       
    43 	void SaveL(TSaveType aSaveType);
       
    44 
       
    45 	// From CTestStep
       
    46 	TVerdict doTestStepL();
       
    47 
       
    48 private:
       
    49 	TTime iShutdownInitiated;
       
    50 	TTime iShutdownPerformed;
       
    51 	TBool iCallbackReceived;
       
    52 	TInt iStartSafeError;
       
    53 	CSaveNotifier *iNotifier;
       
    54 	};
       
    55 
       
    56 #endif