os/security/cryptomgmtlibs/securitytestfw/test/testhandler_on_testexecute/step.cpp
Update contrib.
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 #include "testexecuteinterface.h"
24 #include "t_testsetup.h"
26 using namespace TestExecuteInterface;
28 _LIT(KScriptName, "scriptname");
29 _LIT(KLogName, "logname");
31 CStep::CStep(TScriptTests* aTestTypes)
32 : iTestTypes(aTestTypes)
34 iConsole = new(ELeave) CStepConsole(this);
42 TVerdict CStep::doTestStepPreambleL()
44 return TestStepResult();
47 TVerdict CStep::doTestStepPostambleL()
49 return TestStepResult();
52 TVerdict CStep::doTestStepL()
56 GetStringFromConfig(ConfigSection(), KScriptName, script);
57 GetStringFromConfig(ConfigSection(), KLogName, log);
59 TBool result = EFalse;
60 CTestSetup::CreateAndRunTestsL(iTestTypes, script, log, EFalse, iConsole, &result);
61 SetTestStepResult(result ? EPass : EFail);
64 return TestStepResult();
67 void CStep::Read(TRequestStatus& aStatus)
69 TRequestStatus* stat = &aStatus;
70 User::RequestComplete(stat, KErrNone);
73 void CStep::Write(const TDesC& aDes)
78 void CStepConsole::Read(TRequestStatus& aStatus)
83 void CStepConsole::Write(const TDesC& aDes)