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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 inline CUnitTest::CUnitTest(const TDesC& aName,
18 CDataLogger& aDataLogger,
19 MUnitTestObserver& aUnitTestObserver) :
20 CTimer(CActive::EPriorityStandard),
22 iDataLogger(aDataLogger),
23 iUnitTestObserver(aUnitTestObserver)
25 CActiveScheduler::Add(this);
29 inline const TDesC& CUnitTest::UnitTestName() const
34 inline void CUnitTest::PrepareUnitTestL()
36 // Do nothing in the default implementation
39 inline void CUnitTest::SetRTest(RTest* aRTest)
41 // Record a handle on the RTest object to use in decoding the result
42 // of a unit test run in RunL().