sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // This file contains definitions of the test step classes for RTestStepVirtualStub sl@0: // sl@0: // sl@0: sl@0: #ifndef __TESTSTEPVIRTUALSTUB_H__ sl@0: #define __TESTSTEPVIRTUALSTUB_H__ sl@0: sl@0: sl@0: _LIT(KTestStepVirtualStubName, "TestStepVirtualStub"); sl@0: _LIT(KTestStepVirtualStub2Name, "TestStepVirtualStub2"); sl@0: sl@0: // RTestStepVirtualStub : a test step stub class to run testing on sl@0: sl@0: class RTestStepVirtualStub : public RTestStep sl@0: { sl@0: public: sl@0: static RTestStepVirtualStub* NewL(); sl@0: RTestStepVirtualStub(); sl@0: virtual TVerdict OpenL(); sl@0: virtual void Close(); sl@0: virtual TVerdict DoTestStepL(); sl@0: sl@0: // extra accessors for testing sl@0: CTestSuite* TestGetSuite() const; sl@0: TVerdict TestGetResult() const; sl@0: void TestSetStepName(const TDesC& aName); sl@0: sl@0: TBool PreambleRun(); sl@0: TBool PostambleRun(); sl@0: TBool StepRun(); sl@0: TBool TestGetBoolFromConfig(const TDesC &aSectName, const TDesC &aKeyName, TBool &aResult); sl@0: sl@0: protected: sl@0: TBool iPreambleRun; sl@0: TBool iPostambleRun; sl@0: TBool iStepRun; sl@0: }; sl@0: sl@0: // RTestStepVirtualStub2 : a test step stub class which is identical to sl@0: // RTestStepVirtualStub in all but name. sl@0: sl@0: sl@0: class RTestStepVirtualStub2 : public RTestStepVirtualStub sl@0: { sl@0: public: sl@0: static RTestStepVirtualStub2* NewL(); sl@0: RTestStepVirtualStub2(); sl@0: }; sl@0: sl@0: #endif // __TESTSTEPVIRTUALSTUB_H__