diff -r 000000000000 -r 08ec8eefde2f traceservices/tracefw/ulogger/unit_test/te-createconfig/te_createconfigemptystep.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/traceservices/tracefw/ulogger/unit_test/te-createconfig/te_createconfigemptystep.cpp Fri Jan 22 11:06:30 2010 +0200 @@ -0,0 +1,85 @@ +// 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 "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: +// + +/** + @file te_createconfigemptystep.cpp +*/ + +#include "te_createconfigemptystep.h" +#include "te_clearconfig.h" + +using namespace Ulogger; + +CCreateConfigEmptyTestStep::~CCreateConfigEmptyTestStep() +/** + * Destructor + */ + { + } + +CCreateConfigEmptyTestStep::CCreateConfigEmptyTestStep() +/** + * Constructor + */ + { + // **MUST** call SetTestStepName in the constructor as the controlling + // framework uses the test step name immediately following construction to set + // up the step's unique logging ID. + SetTestStepName(KCreateConfigEmptyStep); + } + + +/** + * Override of base class virtual + * @return - TVerdict code + * + */ +TVerdict CCreateConfigEmptyTestStep::doTestStepPreambleL() + { + return TestStepResult(); + } + +/** + * Override of base class virtual + * @return - TVerdict code + */ +TVerdict CCreateConfigEmptyTestStep::doTestStepPostambleL() + { + return TestStepResult(); + } + +/** + * Test + * @return - TVerdict code + */ + +TVerdict CCreateConfigEmptyTestStep::doTestStepL() + { + + + RULogger logger; + + logger.Connect(); + CClearConfig configIni; + + configIni.Clear(logger); + + logger.SetSecondaryFilteringEnabled(EFalse); + + SetTestStepResult(EPass); + + return TestStepResult(); + + }