os/ossrv/lowlevellibsandfws/pluginfw/Framework/LoadManagerTest/LoadManagerUnitTest.inl
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // The implementation of the inlines for the CLoadManager unit tests.
    15 // 
    16 //
    17 
    18 // ______________________________________________________________________________
    19 //
    20 _LIT(KLoadManagerCreateAndDestroyUnitTest,"CLoadManager_CreateAndDestroy_UnitTest");
    21 
    22 inline TInt CLoadManager_CreateAndDestroy_UnitTest::RunError(TInt aError)
    23 	{
    24 	// The RunL left so chain to the base first and then cleanup
    25 	TInt error = CUnitTest::RunError(aError);	// Chain to base
    26 	delete iUTContext;
    27 	delete iStateAccessor;
    28 	/* delete any validators used */
    29 	delete iCtorValidator;
    30 	delete iDtorValidator;
    31 	return error;
    32 	}
    33 
    34 inline CLoadManager_CreateAndDestroy_UnitTest::~CLoadManager_CreateAndDestroy_UnitTest()
    35 	{
    36 	// Simply delete our test class instance
    37 	delete iUTContext;
    38 	delete iStateAccessor;
    39 	/* delete any validators used */
    40 	delete iCtorValidator;
    41 	delete iDtorValidator;
    42 	}
    43 
    44 inline CLoadManager_CreateAndDestroy_UnitTest::CLoadManager_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger,
    45 																	MUnitTestObserver& aObserver)
    46 : CUnitTest(KLoadManagerCreateAndDestroyUnitTest, aDataLogger, aObserver)
    47 	{
    48 	//Do nothing
    49 	}
    50 
    51 // ______________________________________________________________________________
    52 //
    53 _LIT(KLoadManagerFindInstantiationAndDestroyUnitTest,"CLoadManager_FindInstantiationAndDestroy_UnitTest");
    54 
    55 inline TInt CLoadManager_FindInstantiationAndDestroy_UnitTest::RunError(TInt aError)
    56 	{
    57 	// The RunL left so chain to the base first and then cleanup
    58 	TInt error = CUnitTest::RunError(aError);	// Chain to base
    59 	delete iUTContext;
    60 	delete iStateAccessor;
    61 	// delete any validators used
    62 	delete iCtorValidator;
    63 	delete iInstantiationMethodValidator;
    64 	delete iDestroyThisValidator;
    65 	delete iDtorValidator;
    66 	return error;
    67 	}
    68 
    69 inline CLoadManager_FindInstantiationAndDestroy_UnitTest::~CLoadManager_FindInstantiationAndDestroy_UnitTest()
    70 	{
    71 	// Simply delete our test class instance
    72 	delete iUTContext;
    73 	delete iStateAccessor;
    74 	// delete any validators used
    75 	delete iCtorValidator;
    76 	delete iInstantiationMethodValidator;
    77 	delete iDestroyThisValidator;
    78 	delete iDtorValidator;
    79 	}
    80 
    81 inline CLoadManager_FindInstantiationAndDestroy_UnitTest::CLoadManager_FindInstantiationAndDestroy_UnitTest(CDataLogger& aDataLogger,
    82 																	MUnitTestObserver& aObserver)
    83 : CUnitTest(KLoadManagerFindInstantiationAndDestroyUnitTest, aDataLogger, aObserver)
    84 	{
    85 	//Do nothing
    86 	}
    87 
    88 // ______________________________________________________________________________
    89 //
    90 _LIT(KLoadManagerFindInstantiationFailureUnitTest,"CLoadManager_FindInstantiationFailure_UnitTest");
    91 
    92 inline TInt CLoadManager_FindInstantiationFailure_UnitTest::RunError(TInt aError)
    93 	{
    94 	// The RunL left so chain to the base first and then cleanup
    95 	TInt error = CUnitTest::RunError(aError);	// Chain to base
    96 	delete iUTContext;
    97 	delete iStateAccessor;
    98 	// delete any validators used
    99 	delete iCtorValidator;
   100 	delete iInstantiationMethodValidator;
   101 	delete iDtorValidator;
   102 	return error;
   103 	}
   104 
   105 inline CLoadManager_FindInstantiationFailure_UnitTest::~CLoadManager_FindInstantiationFailure_UnitTest()
   106 	{
   107 	// Simply delete our test class instance
   108 	delete iUTContext;
   109 	delete iStateAccessor;
   110 	// delete any validators used
   111 	delete iCtorValidator;
   112 	delete iInstantiationMethodValidator;
   113 	delete iDtorValidator;
   114 	}
   115 
   116 inline CLoadManager_FindInstantiationFailure_UnitTest::CLoadManager_FindInstantiationFailure_UnitTest(CDataLogger& aDataLogger,
   117 																	MUnitTestObserver& aObserver)
   118 : CUnitTest(KLoadManagerFindInstantiationFailureUnitTest, aDataLogger, aObserver)
   119 	{
   120 	//Do nothing
   121 	}
   122 
   123 // ______________________________________________________________________________
   124 //
   125 _LIT(KLoadManagerDefectFOT56ULPMUnitTest,"CLoadManager_DefectFOT56ULPM_UnitTest");
   126 
   127 inline TInt CLoadManager_DefectFOT56ULPM_UnitTest::RunError(TInt aError)
   128 	{
   129 	// The RunL left so chain to the base first and then cleanup
   130 	TInt error = CUnitTest::RunError(aError);	// Chain to base
   131 	delete iUTContext;
   132 	delete iStateAccessor;
   133 	// delete any validators used
   134 	delete iCtorValidator;
   135 	delete iInstantiationMethodValidator;
   136 	delete iDestroyThisValidator;
   137 	delete iDtorValidator;
   138 	return error;
   139 	}
   140 
   141 inline CLoadManager_DefectFOT56ULPM_UnitTest::~CLoadManager_DefectFOT56ULPM_UnitTest()
   142 	{
   143 	// Simply delete our test class instance
   144 	delete iUTContext;
   145 	delete iStateAccessor;
   146 	// delete any validators used
   147 	delete iCtorValidator;
   148 	delete iInstantiationMethodValidator;
   149 	delete iDestroyThisValidator;
   150 	delete iDtorValidator;
   151 	}
   152 
   153 inline CLoadManager_DefectFOT56ULPM_UnitTest::CLoadManager_DefectFOT56ULPM_UnitTest(CDataLogger& aDataLogger,
   154 																	MUnitTestObserver& aObserver)
   155 : CUnitTest(KLoadManagerDefectFOT56ULPMUnitTest, aDataLogger, aObserver)
   156 	{
   157 	//Do nothing
   158 	}
   159