diff -r f1112f777ce9 -r 96906a986c3b testdev/ite/test/com.nokia.testfw.cmdtool.test/test.resource/unittest/several.mmp.in.one.path/SysLibs/unittest/src/ut_CExampleResolver.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testdev/ite/test/com.nokia.testfw.cmdtool.test/test.resource/unittest/several.mmp.in.one.path/SysLibs/unittest/src/ut_CExampleResolver.cpp Tue Mar 30 14:39:29 2010 +0800 @@ -0,0 +1,133 @@ +/* +* Copyright (c) 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/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#include "ut_CExampleResolver.h" +#include "ExampleResolver.h" +#include + +// --------------------------------------------------------------------------- +// NewL +// --------------------------------------------------------------------------- +// +UT_CExampleResolver* UT_CExampleResolver::NewL() + { + UT_CExampleResolver* self = UT_CExampleResolver::NewLC(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// NewLC +// --------------------------------------------------------------------------- +// +UT_CExampleResolver* UT_CExampleResolver::NewLC() + { + UT_CExampleResolver* self = new( ELeave )UT_CExampleResolver(); + CleanupStack::PushL( self ); + self->ConstructL(); + return self; + } + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +UT_CExampleResolver::UT_CExampleResolver() + { + } + +// --------------------------------------------------------------------------- +// ConstructL +// --------------------------------------------------------------------------- +// +void UT_CExampleResolver::ConstructL() + { + BASE_CONSTRUCT + ADD_SUT( UT_Destructor_CExampleResolver ) + ADD_SUT( UT_IdentifyImplementationL ) + ADD_SUT( UT_ListAllL ) + ADD_SUT( UT_NewL ) + + // Setup and teardown functions can be changed for each test function + // Usually this is not needed, but this is possible. + // ADD_SUT_WITH_SETUP_AND_TEARDOWN( SetupL, UT_YouFunc, Teardown ) + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +UT_CExampleResolver::~UT_CExampleResolver() + { + } + +// ----------------------------------------------------------------------------- +// SetupL +// ----------------------------------------------------------------------------- +// +void UT_CExampleResolver::SetupL() + { + //iCExampleResolver = CExampleResolver::NewL(); ?? + } + +// ----------------------------------------------------------------------------- +// Teardown +// ----------------------------------------------------------------------------- +// +void UT_CExampleResolver::Teardown() + { + delete iCExampleResolver; + iCExampleResolver = NULL; + } + + +// ----------------------------------------------------------------------------- +// test CExampleResolver::~CExampleResolver () +// ----------------------------------------------------------------------------- +// +void UT_CExampleResolver::UT_Destructor_CExampleResolver() + { + SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady); + } + +// ----------------------------------------------------------------------------- +// test CExampleResolver::IdentifyImplementationL () +// ----------------------------------------------------------------------------- +// +void UT_CExampleResolver::UT_IdentifyImplementationL() + { + SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady); + } + +// ----------------------------------------------------------------------------- +// test CExampleResolver::ListAllL () +// ----------------------------------------------------------------------------- +// +void UT_CExampleResolver::UT_ListAllL() + { + SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady); + } + +// ----------------------------------------------------------------------------- +// test CExampleResolver::NewL () +// ----------------------------------------------------------------------------- +// +void UT_CExampleResolver::UT_NewL() + { + SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady); + } +