diff -r 000000000000 -r 9b3e960ffc8a camerasrv_plat/asynchronous_file_saving_queue_api/tsrc/inc/TestFramework/testSuite.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerasrv_plat/asynchronous_file_saving_queue_api/tsrc/inc/TestFramework/testSuite.h Thu Dec 17 08:51:24 2009 +0200 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2002-2007 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: FSQ Test DLL +* +*/ + + + +#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