diff -r e3cdd00b5ae3 -r 27fe719c32e6 camerasrv_plat/camera_application_engine_api/tsrc/inc/TestFrameWork/testSuite.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerasrv_plat/camera_application_engine_api/tsrc/inc/TestFrameWork/testSuite.h Wed Sep 01 12:23:23 2010 +0100 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2002 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: CTestSuite +* +*/ + + + +#ifndef __CPPUNIT_CTESTSUITE_H +#define __CPPUNIT_CTESTSUITE_H + +#include +#include "TestFrameWork/test.h" + +class TestResult; +class CppUnitLog; + +/* +* A CTestSuite is a Composite of MTests. +* It runs a collection of test cases. +* +* see MTest and CTestCaller +*/ + + +class CTestSuite : public MTest, public CBase + { + public: + + static CTestSuite* NewLC(const TDesC8& aName); + static CTestSuite* NewL(const TDesC8& aName); + ~CTestSuite (); + + void addTestL (MTest *aTest); + + // From MTest: + void ExecuteL (TTestResult& aResult); + + // From MTest: + TInt CountTestCases (); + + // From MTest: + const TDesC8& Name (); + + + // From MTest: + void ExecuteTestL(TTestResult& aResult, + TInt aIndex); + + // From MTest: + const TDesC8& TestCaseName (TInt aIndex); + + private: + + void ConstructL (const TDesC8& aName); + CTestSuite () { } + + RPointerArray iTests; + HBufC8 *iName; + }; + +#endif