imagingext_pub/exif_api/tsrc/inc/TestFrameWork/test.h
changeset 0 469c91dae73b
equal deleted inserted replaced
-1:000000000000 0:469c91dae73b
       
     1 /*
       
     2 * Copyright (c) 2002 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: ExifLibTest
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CPPUNIT_MTEST_H
       
    21 #define __CPPUNIT_MTEST_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <StifTestModule.h>
       
    25 class CCppUnitLog;
       
    26 
       
    27 
       
    28 // A MTest can be run and collect its results. See CTestResult.
       
    29 //
       
    30 class MTest
       
    31 	{
       
    32 public:
       
    33 
       
    34 	virtual ~MTest() { }
       
    35 
       
    36     virtual void ExecuteL (TTestResult& aResult) = 0;
       
    37     
       
    38 	virtual TInt CountTestCases () = 0;
       
    39     
       
    40 	virtual const TDesC8& Name () = 0;
       
    41 
       
    42     // Same functions with an Index.
       
    43     virtual void ExecuteTestL(TTestResult& aResult,
       
    44                       TInt aIndex) = 0;
       
    45 
       
    46     virtual const TDesC8& TestCaseName (TInt aIndex) = 0;
       
    47 	};
       
    48 
       
    49 // All the polymorphic DLLs containing tests should use the following UID:
       
    50 //
       
    51 const TInt KCppUnitTestDllUidValue=0x101F5380;
       
    52 const TUid KCppUnitTestDllUid={KCppUnitTestDllUidValue};
       
    53 
       
    54 #endif
       
    55