phoneapp/phoneuicontrol/tsrc/ut_cphoneuicommandmanager/Src/ut_cphoneuicommandmanager.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_CPHONEUIMANAGER_H__
       
    19 #define __UT_CPHONEUIMANAGER_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <CEUnitTestSuiteClass.h>
       
    23 #include <EUnitDecorators.h>
       
    24 
       
    25 #include "cphoneuicommandmanager.h"
       
    26 #include "mphonecustomization.h"
       
    27 #include "cphonemainresourceresolver.h"
       
    28 #include "TPhoneCommandParam.h"
       
    29 #include "CPhoneState.h"
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CPhoneViewCommandHandleMock;
       
    33 class CPhoneStateMachine;
       
    34 class CPhoneMainResourceResolverMock;
       
    35 class CSmcMockContext;
       
    36 class CPEEngineInfo;
       
    37 
       
    38 // CLASS DEFINITION
       
    39 /**
       
    40  * Generated EUnit test suite class.
       
    41  */
       
    42 NONSHARABLE_CLASS( ut_cphoneuicommandmanager )
       
    43 	: public CEUnitTestSuiteClass
       
    44     {
       
    45     public:  // Constructors and destructor
       
    46 
       
    47         static ut_cphoneuicommandmanager* NewL();
       
    48         static ut_cphoneuicommandmanager* NewLC();
       
    49         ~ut_cphoneuicommandmanager();
       
    50 
       
    51     private: // Constructors
       
    52 
       
    53         ut_cphoneuicommandmanager();
       
    54         void ConstructL();
       
    55 
       
    56     private: // New methods
       
    57 
       
    58          void SetupL();
       
    59          void Teardown();
       
    60          
       
    61     private: // Test Cases.
       
    62         
       
    63          void T_CPhoneUiCommandManager__EmptyL();
       
    64          void T_UpdateUiCommands();
       
    65          void T_Set_Get_SoftRejectStatus();
       
    66         
       
    67     private: // Data
       
    68 
       
    69         CPhoneUiCommandManager* iCmdManager;
       
    70         CPhoneViewCommandHandleMock* iViewCmdHandleMock;
       
    71         CPhoneStateMachine* iStateMachineMock;
       
    72         MPhoneCustomization* iCustomization;
       
    73         TInt iCallId;
       
    74         CSmcMockContext* iMockContext;
       
    75         CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock;
       
    76         CPEEngineInfo* iEngineInfoMock;
       
    77         CPhoneState* iPhoneStateMock;
       
    78 
       
    79         EUNIT_DECLARE_TEST_TABLE;
       
    80     };
       
    81 
       
    82 #endif      //  __UT_CPHONEUIMANAGER_H__