symbianunittestfw/sutfw/sutfwexamples/sutfwracecarexample/tsrc/inc/ut_racecar.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2009 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UT_RACECAR_H
       
    19 #define UT_RACECAR_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <symbianunittest.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CRaceCar;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class UT_CRaceCar : public CSymbianUnitTest
       
    29     {
       
    30     public: // Constructors and destructor
       
    31     
       
    32         static UT_CRaceCar* NewL();
       
    33         static UT_CRaceCar* NewLC();
       
    34         ~UT_CRaceCar();
       
    35    
       
    36     protected: // From CSymbianUnitTest
       
    37         
       
    38         void SetupL();
       
    39         void Teardown();
       
    40         
       
    41     protected: // Test functions
       
    42     
       
    43         void UT_FuelL();
       
    44         void UT_SteeringL();
       
    45         void UT_SpeedL();
       
    46         void UT_ColorL();
       
    47         void UT_TimeoutL();
       
    48 	void UT_CrashL();
       
    49 	void UT_QuitL();
       
    50     
       
    51     private: // Contructors
       
    52         
       
    53         UT_CRaceCar();
       
    54         void ConstructL();  
       
    55 
       
    56     private: // Data
       
    57     
       
    58         // The object to be tested as a member variable:
       
    59         CRaceCar *iRaceCar;
       
    60     };
       
    61 
       
    62 #endif // UT_RACECAR_H