diff -r e8c1ea2c6496 -r 8758140453c0 lbs/common/src/ctlbsstep.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lbs/common/src/ctlbsstep.cpp Thu Jan 21 12:53:44 2010 +0000 @@ -0,0 +1,67 @@ +// Copyright (c) 2006-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 "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// @file CT_LbsStep.cpp +// This is the class implementation for the LBS Test Step Base +// +// + +#include "ctlbsstep.h" + +#include "tlbsutils.h" +#include "ctlbsasyncwaiter.h" + + +/** + * @return - TVerdict + * Implementation of CTestStep base class virtual + * It is used for doing all initialisation common to derived classes in here. + * Make it being able to leave if there are any errors here as there's no point in + * trying to run a test step if anything fails. + * The leave will be picked up by the framework. + */ +TVerdict CT_LbsStep::doTestStepPreambleL() + { + // Process some common pre setting to test steps then set SetTestStepResult to EFail or Epass. + INFO_PRINTF1(_L(">>CT_LbsStep::doTestStepPreambleL()")); + SetTestStepResult(EPass); + + return TestStepResult(); + } + + +/** + * @return - TVerdict + * Implementation of CTestStep base class virtual + * It is used for doing all after test treatment common to derived classes in here. + * Make it being able to leave + * The leave will be picked up by the framework. + */ +TVerdict CT_LbsStep::doTestStepPostambleL() + { + // Process some common post setting to test steps then set SetTestStepResult to EFail or Epass. + INFO_PRINTF1(_L(">>CT_LbsStep::doTestStepPostabmleL()")); + + //SetTestStepResult(EPass); // or EFail + return TestStepResult(); + } + + +CT_LbsStep::~CT_LbsStep() + { + } + + +CT_LbsStep::CT_LbsStep(CT_LbsServer& aParent) : iParent(aParent) + { + }