imagingext_pub/exif_api/tsrc/inc/ExifLibTestStif.h
changeset 0 469c91dae73b
equal deleted inserted replaced
-1:000000000000 0:469c91dae73b
       
     1 /*
       
     2 * Copyright (c) 2003, 2004 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:  Exif Library Test DLL
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __EXIFLIBTEST_H
       
    20 #define __EXIFLIBTEST_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 #include "ExifLibTestInc.h"
       
    28 // CLASS DECLARATION
       
    29 class CTestModule;
       
    30 class TCaseInfo;
       
    31 
       
    32 // Demo testmodule class definition.
       
    33 NONSHARABLE_CLASS( CTestModule )
       
    34         :public CTestModuleBase
       
    35     {
       
    36     public: // Enumerations
       
    37     	// None
       
    38 
       
    39     private: // Enumerations
       
    40     	// None
       
    41 
       
    42     public: // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static CTestModule* NewL();
       
    48         
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CTestModule();
       
    53 
       
    54     public: // New functions
       
    55         // None
       
    56         
       
    57     public: // Functions from base classes
       
    58 
       
    59         /**
       
    60         * Test cases are inquired from the Test Module by calling GetTestCases. 
       
    61         * Test cases are appended to RPointerArray<TTestCaseInfo>& aTestCases
       
    62         * that is a list consisting of several TTestCaseInfo objects.
       
    63         */
       
    64         TInt GetTestCasesL( const TFileName& aConfigFile, 
       
    65             RPointerArray<TTestCaseInfo>& aTestCases );
       
    66         /**
       
    67         * RunTestCase is used to run an individual test case.
       
    68         */
       
    69         TInt RunTestCaseL( const TInt aCaseNumber, 
       
    70                           const TFileName& aConfig,
       
    71                           TTestResult& aResult );
       
    72         
       
    73     protected: // New functions
       
    74     	// None
       
    75     	
       
    76     protected: // Functions from base classes
       
    77         // None
       
    78     	
       
    79     private:
       
    80 
       
    81         /**
       
    82         * C++ default constructor.
       
    83         */
       
    84         CTestModule();
       
    85 
       
    86         /**
       
    87         * Symbian OS constructor.
       
    88         */
       
    89         void ConstructL();        
       
    90 
       
    91         /**
       
    92         * Function returning test case name and pointer to test case function
       
    93         */
       
    94         const TCaseInfo Case ( const TInt aCaseNumber ) const;
       
    95         
       
    96             
       
    97 	public: //Data
       
    98 	    // None
       
    99     	
       
   100 	protected: // Data
       
   101         // None
       
   102     	
       
   103     private: // Data
       
   104 
       
   105        CTestSuite *iTestSuite ;
       
   106        CActiveScheduler* iScheduler;
       
   107     	
       
   108     public: // Friend classes
       
   109         // None
       
   110     	
       
   111     protected: // Friend classes
       
   112         // None
       
   113     	
       
   114     private: // Friend classes
       
   115         // None
       
   116     	
       
   117     };
       
   118 #endif