sl@0: // Copyright (c) 1997-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 "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: // The implementation of the inlines for the CLoadManager unit tests. sl@0: // sl@0: // sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerCreateAndDestroyUnitTest,"CLoadManager_CreateAndDestroy_UnitTest"); sl@0: sl@0: inline TInt CLoadManager_CreateAndDestroy_UnitTest::RunError(TInt aError) sl@0: { sl@0: // The RunL left so chain to the base first and then cleanup sl@0: TInt error = CUnitTest::RunError(aError); // Chain to base sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: /* delete any validators used */ sl@0: delete iCtorValidator; sl@0: delete iDtorValidator; sl@0: return error; sl@0: } sl@0: sl@0: inline CLoadManager_CreateAndDestroy_UnitTest::~CLoadManager_CreateAndDestroy_UnitTest() sl@0: { sl@0: // Simply delete our test class instance sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: /* delete any validators used */ sl@0: delete iCtorValidator; sl@0: delete iDtorValidator; sl@0: } sl@0: sl@0: inline CLoadManager_CreateAndDestroy_UnitTest::CLoadManager_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger, sl@0: MUnitTestObserver& aObserver) sl@0: : CUnitTest(KLoadManagerCreateAndDestroyUnitTest, aDataLogger, aObserver) sl@0: { sl@0: //Do nothing sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerFindInstantiationAndDestroyUnitTest,"CLoadManager_FindInstantiationAndDestroy_UnitTest"); sl@0: sl@0: inline TInt CLoadManager_FindInstantiationAndDestroy_UnitTest::RunError(TInt aError) sl@0: { sl@0: // The RunL left so chain to the base first and then cleanup sl@0: TInt error = CUnitTest::RunError(aError); // Chain to base sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: // delete any validators used sl@0: delete iCtorValidator; sl@0: delete iInstantiationMethodValidator; sl@0: delete iDestroyThisValidator; sl@0: delete iDtorValidator; sl@0: return error; sl@0: } sl@0: sl@0: inline CLoadManager_FindInstantiationAndDestroy_UnitTest::~CLoadManager_FindInstantiationAndDestroy_UnitTest() sl@0: { sl@0: // Simply delete our test class instance sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: // delete any validators used sl@0: delete iCtorValidator; sl@0: delete iInstantiationMethodValidator; sl@0: delete iDestroyThisValidator; sl@0: delete iDtorValidator; sl@0: } sl@0: sl@0: inline CLoadManager_FindInstantiationAndDestroy_UnitTest::CLoadManager_FindInstantiationAndDestroy_UnitTest(CDataLogger& aDataLogger, sl@0: MUnitTestObserver& aObserver) sl@0: : CUnitTest(KLoadManagerFindInstantiationAndDestroyUnitTest, aDataLogger, aObserver) sl@0: { sl@0: //Do nothing sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerFindInstantiationFailureUnitTest,"CLoadManager_FindInstantiationFailure_UnitTest"); sl@0: sl@0: inline TInt CLoadManager_FindInstantiationFailure_UnitTest::RunError(TInt aError) sl@0: { sl@0: // The RunL left so chain to the base first and then cleanup sl@0: TInt error = CUnitTest::RunError(aError); // Chain to base sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: // delete any validators used sl@0: delete iCtorValidator; sl@0: delete iInstantiationMethodValidator; sl@0: delete iDtorValidator; sl@0: return error; sl@0: } sl@0: sl@0: inline CLoadManager_FindInstantiationFailure_UnitTest::~CLoadManager_FindInstantiationFailure_UnitTest() sl@0: { sl@0: // Simply delete our test class instance sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: // delete any validators used sl@0: delete iCtorValidator; sl@0: delete iInstantiationMethodValidator; sl@0: delete iDtorValidator; sl@0: } sl@0: sl@0: inline CLoadManager_FindInstantiationFailure_UnitTest::CLoadManager_FindInstantiationFailure_UnitTest(CDataLogger& aDataLogger, sl@0: MUnitTestObserver& aObserver) sl@0: : CUnitTest(KLoadManagerFindInstantiationFailureUnitTest, aDataLogger, aObserver) sl@0: { sl@0: //Do nothing sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerDefectFOT56ULPMUnitTest,"CLoadManager_DefectFOT56ULPM_UnitTest"); sl@0: sl@0: inline TInt CLoadManager_DefectFOT56ULPM_UnitTest::RunError(TInt aError) sl@0: { sl@0: // The RunL left so chain to the base first and then cleanup sl@0: TInt error = CUnitTest::RunError(aError); // Chain to base sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: // delete any validators used sl@0: delete iCtorValidator; sl@0: delete iInstantiationMethodValidator; sl@0: delete iDestroyThisValidator; sl@0: delete iDtorValidator; sl@0: return error; sl@0: } sl@0: sl@0: inline CLoadManager_DefectFOT56ULPM_UnitTest::~CLoadManager_DefectFOT56ULPM_UnitTest() sl@0: { sl@0: // Simply delete our test class instance sl@0: delete iUTContext; sl@0: delete iStateAccessor; sl@0: // delete any validators used sl@0: delete iCtorValidator; sl@0: delete iInstantiationMethodValidator; sl@0: delete iDestroyThisValidator; sl@0: delete iDtorValidator; sl@0: } sl@0: sl@0: inline CLoadManager_DefectFOT56ULPM_UnitTest::CLoadManager_DefectFOT56ULPM_UnitTest(CDataLogger& aDataLogger, sl@0: MUnitTestObserver& aObserver) sl@0: : CUnitTest(KLoadManagerDefectFOT56ULPMUnitTest, aDataLogger, aObserver) sl@0: { sl@0: //Do nothing sl@0: } sl@0: