sl@0: /* sl@0: * Copyright (c) 2005-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 the License "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: * Example CTestStep derived implementation sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: #include "keyexchangeasynchronousgeneralusagestep.h" sl@0: sl@0: CKeyExchangeASynchronousGeneralUsageStep::~CKeyExchangeASynchronousGeneralUsageStep() sl@0: /** sl@0: * Destructor sl@0: */ sl@0: { sl@0: } sl@0: sl@0: CKeyExchangeASynchronousGeneralUsageStep::CKeyExchangeASynchronousGeneralUsageStep() sl@0: /** sl@0: * Constructor sl@0: */ sl@0: { sl@0: // **MUST** call SetTestStepName in the constructor as the controlling sl@0: // framework uses the test step name immediately following construction to set sl@0: // up the step's unique logging ID. sl@0: SetTestStepName(KKeyExchangeASynchronousGeneralUsageStep); sl@0: } sl@0: sl@0: TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPreambleL() sl@0: /** sl@0: * @return - TVerdict code sl@0: * Override of base class virtual sl@0: */ sl@0: { sl@0: INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Preamble in Class CKeyExchangeASynchronousGeneralUsageStep")); sl@0: // uncomment the following 3 lines if you have common pre setting to all the test steps in there sl@0: // CTe_FactoryObjectsSuiteStepBase::doTestStepPreambleL(); sl@0: // if (TestStepResult()!=EPass) sl@0: // return TestStepResult(); sl@0: // process some pre setting to this test step then set SetTestStepResult to EFail or Epass. sl@0: SetTestStepResult(EPass); sl@0: return TestStepResult(); sl@0: } sl@0: sl@0: sl@0: TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepL() sl@0: /** sl@0: * @return - TVerdict code sl@0: * Override of base class pure virtual sl@0: * Our implementation only gets called if the base class doTestStepPreambleL() did sl@0: * not leave. That being the case, the current test result value will be EPass. sl@0: */ sl@0: { sl@0: if (TestStepResult()==EPass) sl@0: { sl@0: sl@0: sl@0: SetTestStepResult(EPass); sl@0: } sl@0: return TestStepResult(); sl@0: } sl@0: sl@0: sl@0: sl@0: TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPostambleL() sl@0: /** sl@0: * @return - TVerdict code sl@0: * Override of base class virtual sl@0: */ sl@0: { sl@0: INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Postamble in Class CKeyExchangeASynchronousGeneralUsageStep")); sl@0: // process something post setting to the test step sl@0: // uncomment the following line if you have common post setting to all the test steps in there sl@0: // CTe_FactoryObjectsSuiteStepBase::doTestStepPostambleL(); sl@0: // uncomment the following line if you have post process or remove the following line if no post process sl@0: // SetTestStepResult(EPass); // or EFail sl@0: return TestStepResult(); sl@0: }