phoneapp/phoneuistates/tsrc/ut_cphoneidle/Src/ut_cphoneidle.h
changeset 77 2be0b271d017
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     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_CPHONEIDLE_H__
       
    19 #define __UT_CPHONEIDLE_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <CEUnitTestSuiteClass.h>
       
    23 #include <EUnitDecorators.h>
       
    24 
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CSmcMockContext;
       
    29 class CPhoneIdle;
       
    30 class MPhoneStateMachine;
       
    31 class CPhoneViewController;
       
    32 class CPhoneIdle_Inherited;
       
    33  
       
    34 
       
    35 // CLASS DEFINITION
       
    36 /**
       
    37  * Generated EUnit test suite class.
       
    38  */
       
    39 NONSHARABLE_CLASS( ut_cphoneidle )
       
    40     : public CEUnitTestSuiteClass
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43 
       
    44         static ut_cphoneidle* NewL();
       
    45         static ut_cphoneidle* NewLC();
       
    46         ~ut_cphoneidle();
       
    47 
       
    48     private: // Constructors
       
    49 
       
    50         ut_cphoneidle();
       
    51         void ConstructL();
       
    52 
       
    53     private: // New methods
       
    54 
       
    55          void SetupL();
       
    56         
       
    57          void Teardown();
       
    58         
       
    59          void T_ConstructionL();
       
    60          
       
    61          void T_HandlePhoneEngineMessageL();
       
    62          
       
    63          void T_HandleErrorL();
       
    64 
       
    65     private: // Data
       
    66    
       
    67       
       
    68         CPhoneIdle * iStateIdle;
       
    69         
       
    70         CSmcMockContext* iMockContext;
       
    71              
       
    72         MPhoneStateMachine* iStateMachineMock;
       
    73  
       
    74         CPhoneViewController* iViewCommandHandle;
       
    75         
       
    76         CPhoneIdle_Inherited* iIdleInherited;
       
    77  
       
    78         EUNIT_DECLARE_TEST_TABLE;
       
    79 
       
    80     };
       
    81 
       
    82 #endif      //  __UT_CPHONEIDLE_H__