symbianunittestfw/sutfw/sutfwexamples/sutfwkernelexample/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 <kernel/kernel.h>
       
    23 #include <symbianunittestldd.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class DRaceCar;
       
    27 
       
    28 
       
    29 class DRaceCarTestFactory : public DSymbianUnitTestFactory
       
    30     {
       
    31     public:
       
    32         DRaceCarTestFactory(const TDesC& aName) :
       
    33             DSymbianUnitTestFactory(aName){};
       
    34         TInt Create(DLogicalChannelBase*& aChannel);
       
    35     };
       
    36 
       
    37 // CLASS DECLARATION
       
    38 class UT_DRaceCar : public DSymbianUnitTest
       
    39     {
       
    40     public: // Constructors and destructor
       
    41     
       
    42         UT_DRaceCar();
       
    43         ~UT_DRaceCar();
       
    44         
       
    45     protected: // From DSymbianUnitTest
       
    46         
       
    47         TInt Setup();
       
    48         TInt Teardown();
       
    49         void Construct();
       
    50         
       
    51     protected: // Test functions
       
    52     
       
    53         TInt UT_Fuel();
       
    54         TInt UT_Steering();
       
    55         TInt UT_Speed();
       
    56         TInt UT_Color();
       
    57         TInt UT_Crash();
       
    58         
       
    59 
       
    60     private: // Data
       
    61     
       
    62         // The object to be tested as a member variable:
       
    63         DRaceCar *iRaceCar;
       
    64     };
       
    65 
       
    66 #endif // UT_RACECAR_H