lowlevellibsandfws/pluginfw/Test_Bed/test_bed/LeakTestTransition.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
--- a/lowlevellibsandfws/pluginfw/Test_Bed/test_bed/LeakTestTransition.cpp	Fri Apr 16 16:46:38 2010 +0300
+++ b/lowlevellibsandfws/pluginfw/Test_Bed/test_bed/LeakTestTransition.cpp	Mon May 03 14:06:43 2010 +0300
@@ -29,22 +29,11 @@
 	// Do nothing here
 	}
 
-class TestRHeap : public RHeap
-	{
-public:
-	inline void Set(TAny* aPtr)
-		{
-		iTestData = aPtr;
-		};
-	};
-RHeap::SHeapCellInfo s;
-
 // Define the overloaded RunL behaviour here
 EXPORT_C void CLeakTestTransition::RunL()
 	{
 	// Setup leak check and call the base RunL
 	iThread.HandleCount(iStartProcessHandleCount, iStartThreadHandleCount);
-	(static_cast<TestRHeap&>(User::Heap())).Set(&s);
 	__UHEAP_SETFAIL(RHeap::EDeterministic,iFailStep);
 	__UHEAP_MARK;
 	if(iBreakStep == iFailStep)
@@ -141,13 +130,10 @@
 		}
 	__UHEAP_MARKEND;
 	__UHEAP_SETFAIL(RHeap::ENone, KMemoryLeakTestFailInit);	// No more fails
-	(static_cast<TestRHeap&>(User::Heap())).Set(0);
 	return KErrNone;
 	}
 
 EXPORT_C void CLeakTestTransition::PostTransitionCleanup()
 	{
-	__UHEAP_MARKEND;
 	__UHEAP_SETFAIL(RHeap::ENone, KMemoryLeakTestFailInit);	// No more fails
-	(static_cast<TestRHeap&>(User::Heap())).Set(0);
 	}