os/ossrv/lowlevellibsandfws/pluginfw/Framework/LoadManagerTest/LoadManagerUnitTest.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// The implementation of the inlines for the CLoadManager unit tests.
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
// ______________________________________________________________________________
sl@0
    19
//
sl@0
    20
_LIT(KLoadManagerCreateAndDestroyUnitTest,"CLoadManager_CreateAndDestroy_UnitTest");
sl@0
    21
sl@0
    22
inline TInt CLoadManager_CreateAndDestroy_UnitTest::RunError(TInt aError)
sl@0
    23
	{
sl@0
    24
	// The RunL left so chain to the base first and then cleanup
sl@0
    25
	TInt error = CUnitTest::RunError(aError);	// Chain to base
sl@0
    26
	delete iUTContext;
sl@0
    27
	delete iStateAccessor;
sl@0
    28
	/* delete any validators used */
sl@0
    29
	delete iCtorValidator;
sl@0
    30
	delete iDtorValidator;
sl@0
    31
	return error;
sl@0
    32
	}
sl@0
    33
sl@0
    34
inline CLoadManager_CreateAndDestroy_UnitTest::~CLoadManager_CreateAndDestroy_UnitTest()
sl@0
    35
	{
sl@0
    36
	// Simply delete our test class instance
sl@0
    37
	delete iUTContext;
sl@0
    38
	delete iStateAccessor;
sl@0
    39
	/* delete any validators used */
sl@0
    40
	delete iCtorValidator;
sl@0
    41
	delete iDtorValidator;
sl@0
    42
	}
sl@0
    43
sl@0
    44
inline CLoadManager_CreateAndDestroy_UnitTest::CLoadManager_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger,
sl@0
    45
																	MUnitTestObserver& aObserver)
sl@0
    46
: CUnitTest(KLoadManagerCreateAndDestroyUnitTest, aDataLogger, aObserver)
sl@0
    47
	{
sl@0
    48
	//Do nothing
sl@0
    49
	}
sl@0
    50
sl@0
    51
// ______________________________________________________________________________
sl@0
    52
//
sl@0
    53
_LIT(KLoadManagerFindInstantiationAndDestroyUnitTest,"CLoadManager_FindInstantiationAndDestroy_UnitTest");
sl@0
    54
sl@0
    55
inline TInt CLoadManager_FindInstantiationAndDestroy_UnitTest::RunError(TInt aError)
sl@0
    56
	{
sl@0
    57
	// The RunL left so chain to the base first and then cleanup
sl@0
    58
	TInt error = CUnitTest::RunError(aError);	// Chain to base
sl@0
    59
	delete iUTContext;
sl@0
    60
	delete iStateAccessor;
sl@0
    61
	// delete any validators used
sl@0
    62
	delete iCtorValidator;
sl@0
    63
	delete iInstantiationMethodValidator;
sl@0
    64
	delete iDestroyThisValidator;
sl@0
    65
	delete iDtorValidator;
sl@0
    66
	return error;
sl@0
    67
	}
sl@0
    68
sl@0
    69
inline CLoadManager_FindInstantiationAndDestroy_UnitTest::~CLoadManager_FindInstantiationAndDestroy_UnitTest()
sl@0
    70
	{
sl@0
    71
	// Simply delete our test class instance
sl@0
    72
	delete iUTContext;
sl@0
    73
	delete iStateAccessor;
sl@0
    74
	// delete any validators used
sl@0
    75
	delete iCtorValidator;
sl@0
    76
	delete iInstantiationMethodValidator;
sl@0
    77
	delete iDestroyThisValidator;
sl@0
    78
	delete iDtorValidator;
sl@0
    79
	}
sl@0
    80
sl@0
    81
inline CLoadManager_FindInstantiationAndDestroy_UnitTest::CLoadManager_FindInstantiationAndDestroy_UnitTest(CDataLogger& aDataLogger,
sl@0
    82
																	MUnitTestObserver& aObserver)
sl@0
    83
: CUnitTest(KLoadManagerFindInstantiationAndDestroyUnitTest, aDataLogger, aObserver)
sl@0
    84
	{
sl@0
    85
	//Do nothing
sl@0
    86
	}
sl@0
    87
sl@0
    88
// ______________________________________________________________________________
sl@0
    89
//
sl@0
    90
_LIT(KLoadManagerFindInstantiationFailureUnitTest,"CLoadManager_FindInstantiationFailure_UnitTest");
sl@0
    91
sl@0
    92
inline TInt CLoadManager_FindInstantiationFailure_UnitTest::RunError(TInt aError)
sl@0
    93
	{
sl@0
    94
	// The RunL left so chain to the base first and then cleanup
sl@0
    95
	TInt error = CUnitTest::RunError(aError);	// Chain to base
sl@0
    96
	delete iUTContext;
sl@0
    97
	delete iStateAccessor;
sl@0
    98
	// delete any validators used
sl@0
    99
	delete iCtorValidator;
sl@0
   100
	delete iInstantiationMethodValidator;
sl@0
   101
	delete iDtorValidator;
sl@0
   102
	return error;
sl@0
   103
	}
sl@0
   104
sl@0
   105
inline CLoadManager_FindInstantiationFailure_UnitTest::~CLoadManager_FindInstantiationFailure_UnitTest()
sl@0
   106
	{
sl@0
   107
	// Simply delete our test class instance
sl@0
   108
	delete iUTContext;
sl@0
   109
	delete iStateAccessor;
sl@0
   110
	// delete any validators used
sl@0
   111
	delete iCtorValidator;
sl@0
   112
	delete iInstantiationMethodValidator;
sl@0
   113
	delete iDtorValidator;
sl@0
   114
	}
sl@0
   115
sl@0
   116
inline CLoadManager_FindInstantiationFailure_UnitTest::CLoadManager_FindInstantiationFailure_UnitTest(CDataLogger& aDataLogger,
sl@0
   117
																	MUnitTestObserver& aObserver)
sl@0
   118
: CUnitTest(KLoadManagerFindInstantiationFailureUnitTest, aDataLogger, aObserver)
sl@0
   119
	{
sl@0
   120
	//Do nothing
sl@0
   121
	}
sl@0
   122
sl@0
   123
// ______________________________________________________________________________
sl@0
   124
//
sl@0
   125
_LIT(KLoadManagerDefectFOT56ULPMUnitTest,"CLoadManager_DefectFOT56ULPM_UnitTest");
sl@0
   126
sl@0
   127
inline TInt CLoadManager_DefectFOT56ULPM_UnitTest::RunError(TInt aError)
sl@0
   128
	{
sl@0
   129
	// The RunL left so chain to the base first and then cleanup
sl@0
   130
	TInt error = CUnitTest::RunError(aError);	// Chain to base
sl@0
   131
	delete iUTContext;
sl@0
   132
	delete iStateAccessor;
sl@0
   133
	// delete any validators used
sl@0
   134
	delete iCtorValidator;
sl@0
   135
	delete iInstantiationMethodValidator;
sl@0
   136
	delete iDestroyThisValidator;
sl@0
   137
	delete iDtorValidator;
sl@0
   138
	return error;
sl@0
   139
	}
sl@0
   140
sl@0
   141
inline CLoadManager_DefectFOT56ULPM_UnitTest::~CLoadManager_DefectFOT56ULPM_UnitTest()
sl@0
   142
	{
sl@0
   143
	// Simply delete our test class instance
sl@0
   144
	delete iUTContext;
sl@0
   145
	delete iStateAccessor;
sl@0
   146
	// delete any validators used
sl@0
   147
	delete iCtorValidator;
sl@0
   148
	delete iInstantiationMethodValidator;
sl@0
   149
	delete iDestroyThisValidator;
sl@0
   150
	delete iDtorValidator;
sl@0
   151
	}
sl@0
   152
sl@0
   153
inline CLoadManager_DefectFOT56ULPM_UnitTest::CLoadManager_DefectFOT56ULPM_UnitTest(CDataLogger& aDataLogger,
sl@0
   154
																	MUnitTestObserver& aObserver)
sl@0
   155
: CUnitTest(KLoadManagerDefectFOT56ULPMUnitTest, aDataLogger, aObserver)
sl@0
   156
	{
sl@0
   157
	//Do nothing
sl@0
   158
	}
sl@0
   159