diff -r 000000000000 -r 2c201484c85f cryptomgmtlibs/securitytestfw/test/testhandler2/tScriptSetup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cryptomgmtlibs/securitytestfw/test/testhandler2/tScriptSetup.h Wed Jul 08 11:25:26 2009 +0100 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef __T_SCRIPTSETUP_H__ +#define __T_SCRIPTSETUP_H__ + +#include +#include + +//test setup base classes +_LIT8(KActionStart, ""); +_LIT8(KActionEnd, ""); +_LIT8(KActionNameStart, ""); +_LIT8(KActionNameEnd, ""); +_LIT8(KActionTypeStart, ""); +_LIT8(KActionTypeEnd, ""); +_LIT8(KActionBodyStart, ""); +_LIT8(KActionBodyEnd, ""); +_LIT8(KActionResultStart, ""); +_LIT8(KActionResultEnd, ""); +_LIT8(KActionGroupingStart, ""); +_LIT8(KActionGroupingEnd, ""); +_LIT8(KKnownDefectStart, ""); +_LIT8(KKnownDefectEnd, ""); + +class CTestAction; +class TTestActionSpec; +class CTestSetup; +class CTestSpec; + + +class CScriptSetup : public CTestSetup + { +public: + IMPORT_C static CScriptSetup* NewLC(CConsoleBase* aConsole); + +public: + //aTestSpec is the class that holds the array of test actions, and has the GetNextTest function + //theTestTypes is the static array of test types + //aCommandLineSettings contains the command line parameters + IMPORT_C virtual void SetupTestsL(RFs& aFs, CTestSpec& aTestSpec, TScriptTests theTestTypes[], + const CTestHandlerSettings& aCommandLineSettings); + IMPORT_C ~CScriptSetup(); + + IMPORT_C TBool InitialiseL(RFs &aFs, const TDesC& aDefaultScript = KNullDesC, const TDesC& aDefaultLog = KNullDesC, TBool aUseCommandLine = ETrue); + +protected: + CScriptSetup(CConsoleBase* aConsole); + +protected: + HBufC8* iTestInput; + +protected: + IMPORT_C virtual CTestAction* CreateActionL(RFs& aFs, const TTestActionSpec& aTestActionSpec, + const TScriptTests theTestArray[]) const; + }; + +#endif