mmtestenv/mmtestfwunittest/src/tsu_stubs/TestStepVirtualStub.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2002-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 // This file contains definitions of the test step classes for RTestStepVirtualStub
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __TESTSTEPVIRTUALSTUB_H__
       
    19 #define __TESTSTEPVIRTUALSTUB_H__
       
    20 
       
    21 
       
    22 _LIT(KTestStepVirtualStubName, "TestStepVirtualStub");
       
    23 _LIT(KTestStepVirtualStub2Name, "TestStepVirtualStub2");
       
    24 
       
    25 // RTestStepVirtualStub : a test step stub class to run testing on
       
    26 
       
    27 class RTestStepVirtualStub : public RTestStep
       
    28 	{
       
    29 public:
       
    30 	static RTestStepVirtualStub* NewL();
       
    31 	RTestStepVirtualStub();
       
    32 	virtual TVerdict OpenL();
       
    33 	virtual void Close();
       
    34 	virtual TVerdict DoTestStepL();
       
    35 
       
    36 	// extra accessors for testing
       
    37 	CTestSuite* TestGetSuite() const;
       
    38 	TVerdict TestGetResult() const;
       
    39 	void TestSetStepName(const TDesC& aName);
       
    40 
       
    41 	TBool PreambleRun();
       
    42 	TBool PostambleRun();
       
    43 	TBool StepRun();
       
    44 	TBool TestGetBoolFromConfig(const TDesC &aSectName, const TDesC &aKeyName, TBool &aResult);
       
    45 
       
    46 protected:
       
    47 	TBool iPreambleRun;
       
    48 	TBool iPostambleRun;
       
    49 	TBool iStepRun;
       
    50 	};
       
    51 
       
    52 // RTestStepVirtualStub2 : a test step stub class which is identical to 
       
    53 // RTestStepVirtualStub in all but name.
       
    54 
       
    55 
       
    56 class RTestStepVirtualStub2 : public RTestStepVirtualStub
       
    57 	{
       
    58 public:
       
    59 	static RTestStepVirtualStub2* NewL();
       
    60 	RTestStepVirtualStub2();
       
    61 	};
       
    62 
       
    63 #endif // __TESTSTEPVIRTUALSTUB_H__