lowlevellibsandfws/pluginfw/Test_Bed/inc/UnitTest.inl
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     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 //
       
    15 
       
    16 
       
    17 inline CUnitTest::CUnitTest(const TDesC&		 aName, 
       
    18 							CDataLogger&		 aDataLogger, 
       
    19 							MUnitTestObserver&	 aUnitTestObserver) :
       
    20 CTimer(CActive::EPriorityStandard),
       
    21 iUnitTestName(aName),
       
    22 iDataLogger(aDataLogger),
       
    23 iUnitTestObserver(aUnitTestObserver)
       
    24 	{
       
    25 	CActiveScheduler::Add(this);
       
    26 	}
       
    27 
       
    28 
       
    29 inline const TDesC& CUnitTest::UnitTestName() const
       
    30 	{
       
    31 	return iUnitTestName;
       
    32 	}
       
    33 
       
    34 inline void CUnitTest::PrepareUnitTestL()
       
    35 	{
       
    36 	// Do nothing in the default implementation
       
    37 	}
       
    38 
       
    39 inline void CUnitTest::SetRTest(RTest* aRTest)
       
    40 	{
       
    41 	// Record a handle on the RTest object to use in decoding the result 
       
    42 	// of a unit test run in RunL().
       
    43 	iRTest = aRTest;
       
    44 	}
       
    45 
       
    46 
       
    47