camappengine/asynchfilesavequeue/tsrc/public/basic/inc/TestFramework/testSuite.h
branchRCL_3
changeset 20 e3cdd00b5ae3
parent 19 18fa9327a158
child 21 27fe719c32e6
equal deleted inserted replaced
19:18fa9327a158 20:e3cdd00b5ae3
     1 /*
       
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  FSQ Test DLL
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CPPUNIT_CTESTSUITE_H
       
    21 #define __CPPUNIT_CTESTSUITE_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "TestFrameWork/test.h"
       
    25 
       
    26 class TestResult;
       
    27 class CppUnitLog;
       
    28 
       
    29 /*
       
    30 * A CTestSuite is a Composite of MTests.
       
    31 * It runs a collection of test cases.
       
    32 *
       
    33 * see MTest and CTestCaller
       
    34 */
       
    35 
       
    36 
       
    37 class CTestSuite : public MTest, public CBase
       
    38     {
       
    39     public:
       
    40         
       
    41         static CTestSuite* NewLC(const TDesC8& aName);
       
    42         static CTestSuite* NewL(const TDesC8& aName);
       
    43         ~CTestSuite ();
       
    44         
       
    45         void addTestL (MTest *aTest);
       
    46         
       
    47         // From MTest:
       
    48         void ExecuteL (TTestResult& aResult);
       
    49         
       
    50         // From MTest:
       
    51         TInt CountTestCases ();
       
    52         
       
    53         // From MTest:
       
    54         const TDesC8& Name ();
       
    55         
       
    56         
       
    57         // From MTest:
       
    58         void ExecuteTestL(TTestResult& aResult,
       
    59             TInt aIndex);
       
    60         
       
    61         // From MTest:
       
    62         const TDesC8& TestCaseName (TInt aIndex);
       
    63         
       
    64     private:
       
    65         
       
    66         void ConstructL (const TDesC8& aName);
       
    67         CTestSuite () { }
       
    68         
       
    69         RPointerArray<MTest> iTests;
       
    70         HBufC8 *iName;
       
    71     };
       
    72 
       
    73 #endif