lowlevellibsandfws/pluginfw/Test_Bed/ComponentInfoTest/ComponentInfoUnitTestContext.inl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lowlevellibsandfws/pluginfw/Test_Bed/ComponentInfoTest/ComponentInfoUnitTestContext.inl Tue Feb 02 02:01:42 2010 +0200
@@ -0,0 +1,46 @@
+// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// The context for the unit tests upon the CComponentInfo class methods.
+//
+//
+
+#include "ComponentInfoTransitions.h"
+
+// ______________________________________________________________________________
+//
+inline CComponentInfo_UnitTestContext::CComponentInfo_UnitTestContext(CDataLogger& aDataLogger,
+ MStateAccessor& aStateAccessor,
+ MTransitionObserver& aObserver)
+: CUnitTestContext(aDataLogger, aStateAccessor, aObserver)
+ {
+ //Do nothing
+ }
+
+inline CComponentInfo_UnitTestContext::~CComponentInfo_UnitTestContext()
+ {
+ delete iComponentInfo;
+
+ // Only delete iEntry & iTestInfoArray if we didn't pass ownership to
+ // the CComponentInfo that we are testing
+ if(iOwnParams)
+ {
+ iEntryFunc = 0;
+ if(iTestInfoArray)
+ {
+ iTestInfoArray->ResetAndDestroy();
+ delete iTestInfoArray;
+ }
+ }
+ }
+