os/ossrv/lowlevellibsandfws/pluginfw/Framework/LoadManagerTest/LoadManagerUnitTest.inl
First public contribution.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // The implementation of the inlines for the CLoadManager unit tests.
18 // ______________________________________________________________________________
20 _LIT(KLoadManagerCreateAndDestroyUnitTest,"CLoadManager_CreateAndDestroy_UnitTest");
22 inline TInt CLoadManager_CreateAndDestroy_UnitTest::RunError(TInt aError)
24 // The RunL left so chain to the base first and then cleanup
25 TInt error = CUnitTest::RunError(aError); // Chain to base
27 delete iStateAccessor;
28 /* delete any validators used */
29 delete iCtorValidator;
30 delete iDtorValidator;
34 inline CLoadManager_CreateAndDestroy_UnitTest::~CLoadManager_CreateAndDestroy_UnitTest()
36 // Simply delete our test class instance
38 delete iStateAccessor;
39 /* delete any validators used */
40 delete iCtorValidator;
41 delete iDtorValidator;
44 inline CLoadManager_CreateAndDestroy_UnitTest::CLoadManager_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger,
45 MUnitTestObserver& aObserver)
46 : CUnitTest(KLoadManagerCreateAndDestroyUnitTest, aDataLogger, aObserver)
51 // ______________________________________________________________________________
53 _LIT(KLoadManagerFindInstantiationAndDestroyUnitTest,"CLoadManager_FindInstantiationAndDestroy_UnitTest");
55 inline TInt CLoadManager_FindInstantiationAndDestroy_UnitTest::RunError(TInt aError)
57 // The RunL left so chain to the base first and then cleanup
58 TInt error = CUnitTest::RunError(aError); // Chain to base
60 delete iStateAccessor;
61 // delete any validators used
62 delete iCtorValidator;
63 delete iInstantiationMethodValidator;
64 delete iDestroyThisValidator;
65 delete iDtorValidator;
69 inline CLoadManager_FindInstantiationAndDestroy_UnitTest::~CLoadManager_FindInstantiationAndDestroy_UnitTest()
71 // Simply delete our test class instance
73 delete iStateAccessor;
74 // delete any validators used
75 delete iCtorValidator;
76 delete iInstantiationMethodValidator;
77 delete iDestroyThisValidator;
78 delete iDtorValidator;
81 inline CLoadManager_FindInstantiationAndDestroy_UnitTest::CLoadManager_FindInstantiationAndDestroy_UnitTest(CDataLogger& aDataLogger,
82 MUnitTestObserver& aObserver)
83 : CUnitTest(KLoadManagerFindInstantiationAndDestroyUnitTest, aDataLogger, aObserver)
88 // ______________________________________________________________________________
90 _LIT(KLoadManagerFindInstantiationFailureUnitTest,"CLoadManager_FindInstantiationFailure_UnitTest");
92 inline TInt CLoadManager_FindInstantiationFailure_UnitTest::RunError(TInt aError)
94 // The RunL left so chain to the base first and then cleanup
95 TInt error = CUnitTest::RunError(aError); // Chain to base
97 delete iStateAccessor;
98 // delete any validators used
99 delete iCtorValidator;
100 delete iInstantiationMethodValidator;
101 delete iDtorValidator;
105 inline CLoadManager_FindInstantiationFailure_UnitTest::~CLoadManager_FindInstantiationFailure_UnitTest()
107 // Simply delete our test class instance
109 delete iStateAccessor;
110 // delete any validators used
111 delete iCtorValidator;
112 delete iInstantiationMethodValidator;
113 delete iDtorValidator;
116 inline CLoadManager_FindInstantiationFailure_UnitTest::CLoadManager_FindInstantiationFailure_UnitTest(CDataLogger& aDataLogger,
117 MUnitTestObserver& aObserver)
118 : CUnitTest(KLoadManagerFindInstantiationFailureUnitTest, aDataLogger, aObserver)
123 // ______________________________________________________________________________
125 _LIT(KLoadManagerDefectFOT56ULPMUnitTest,"CLoadManager_DefectFOT56ULPM_UnitTest");
127 inline TInt CLoadManager_DefectFOT56ULPM_UnitTest::RunError(TInt aError)
129 // The RunL left so chain to the base first and then cleanup
130 TInt error = CUnitTest::RunError(aError); // Chain to base
132 delete iStateAccessor;
133 // delete any validators used
134 delete iCtorValidator;
135 delete iInstantiationMethodValidator;
136 delete iDestroyThisValidator;
137 delete iDtorValidator;
141 inline CLoadManager_DefectFOT56ULPM_UnitTest::~CLoadManager_DefectFOT56ULPM_UnitTest()
143 // Simply delete our test class instance
145 delete iStateAccessor;
146 // delete any validators used
147 delete iCtorValidator;
148 delete iInstantiationMethodValidator;
149 delete iDestroyThisValidator;
150 delete iDtorValidator;
153 inline CLoadManager_DefectFOT56ULPM_UnitTest::CLoadManager_DefectFOT56ULPM_UnitTest(CDataLogger& aDataLogger,
154 MUnitTestObserver& aObserver)
155 : CUnitTest(KLoadManagerDefectFOT56ULPMUnitTest, aDataLogger, aObserver)