phoneapp/phoneuistates/tsrc/ut_cphonealerting/src/ut_cphonealerting.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_CPHONEALERTING_H__
       
    19 #define __UT_CPHONEALERTING_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <CEUnitTestSuiteClass.h>
       
    23 #include <EUnitDecorators.h>
       
    24 
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CSmcMockContext;
       
    29 class CPhoneAlerting;
       
    30 class CPhoneStateMachineGSM;
       
    31 class CPhoneViewCommandHandleMock;
       
    32 class CPhoneMainResourceResolverMock;
       
    33 class CPEEngineInfo;
       
    34 class MPhoneViewCommandHandle;
       
    35 class TPhoneCommandParam;
       
    36 class MPhoneState;
       
    37 
       
    38 // CLASS DEFINITION
       
    39 /**
       
    40  * Generated EUnit test suite class.
       
    41  */
       
    42 
       
    43 
       
    44 TBool operator==(const TPhoneCommandParam& param1, const TPhoneCommandParam& param2 ); 
       
    45 
       
    46 NONSHARABLE_CLASS( ut_cphonealerting )
       
    47     : public CEUnitTestSuiteClass
       
    48     {
       
    49     public:  // Constructors and destructor
       
    50 
       
    51         static ut_cphonealerting* NewL();
       
    52         static ut_cphonealerting* NewLC();
       
    53         ~ut_cphonealerting();
       
    54 
       
    55     private: // Constructors
       
    56 
       
    57         ut_cphonealerting();
       
    58         void ConstructL();
       
    59 
       
    60     private: // New methods
       
    61 
       
    62          void SetupL();
       
    63          void Teardown();
       
    64                   
       
    65          
       
    66          void T_HandlePhoneEngineMessageIncomingL();
       
    67          void T_HandlePhoneEngineMessageIdleL();
       
    68          void T_HandlePhoneEngineMessageIdleAfterIncomingL();
       
    69          
       
    70     private: // Data
       
    71     
       
    72         MPhoneViewCommandHandle* iViewCmdHandleMock;
       
    73         CPhoneStateMachineGSM* iStateMachineMock;
       
    74         CPhoneAlerting * iStateAlerting;
       
    75         CSmcMockContext* iMockContext;
       
    76         CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock;
       
    77         CPEEngineInfo* iEngineInfoMock;
       
    78         MPhoneState* iPhoneIdleMock;
       
    79         
       
    80         EUNIT_DECLARE_TEST_TABLE;
       
    81 
       
    82     };
       
    83 
       
    84 #endif      //  __UT_CPHONEALERTING_H__