phoneapp/phoneuicontrol/tsrc/ut_cphoneaccessorybthandler/Src/ut_cphoneaccessorybthandler.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_CPHONEACCESSORYBTHANDLER_H__
       
    19 #define __UT_CPHONEACCESSORYBTHANDLER_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <CEUnitTestSuiteClass.h>
       
    23 #include <EUnitDecorators.h>
       
    24 
       
    25 #include "MPhoneNEClearedHandler.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CPhoneMainResourceResolverMock;
       
    29 class CSmcMockContext;
       
    30 class CCoeEnv;
       
    31 class CPEEngineInfo;
       
    32 class CPhoneAccessoryBTHandler;
       
    33 class CPhoneViewCommandHandleMock;
       
    34 class CPhoneStateMachineGSM;
       
    35 class MPhoneNEClearedHandler;
       
    36 
       
    37 // CLASS DEFINITION
       
    38 /**
       
    39  * Generated EUnit test suite class.
       
    40  */
       
    41 NONSHARABLE_CLASS( UT_CPhoneAccessoryBTHandler )
       
    42     : public CEUnitTestSuiteClass,
       
    43     public MPhoneNEClearedHandler
       
    44     {
       
    45     public:  // Constructors and destructor
       
    46 
       
    47         static UT_CPhoneAccessoryBTHandler* NewL();
       
    48         static UT_CPhoneAccessoryBTHandler* NewLC();
       
    49         ~UT_CPhoneAccessoryBTHandler();
       
    50    
       
    51     private: // MPhoneNEClearedHandler
       
    52         
       
    53         void HandleNumberEntryClearedL();  
       
    54 
       
    55     private: // Constructors
       
    56 
       
    57         UT_CPhoneAccessoryBTHandler();
       
    58         void ConstructL();
       
    59         
       
    60     private: // New methods
       
    61 
       
    62          void SetupL();
       
    63          void Teardown();
       
    64         
       
    65          void UT_SetBTHandsfreeModeL_ONL();
       
    66          void UT_SetBTHandsfreeModeL_OFFL();
       
    67          void UT_SetBTHandsfreeModeL_ON_AudioRoutedToWiredAudioAccessoryL();
       
    68          
       
    69          void UT_SetHandsfreeModeL_ONL();
       
    70          void UT_SetHandsfreeModeL_OFFL();
       
    71          void UT_SetHandsfreeModeL_ON_AudioRoutedToWiredAudioAccessoryL();
       
    72         
       
    73          void UT_ShowBTAddressLL();
       
    74          void UT_ShowBTLoopbackL();
       
    75          void UT_ShowBTActivatedL();
       
    76 
       
    77     private: // Data
       
    78          
       
    79          CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock;
       
    80          CPhoneViewCommandHandleMock* iViewCmdHandleMock;
       
    81          CPhoneStateMachineGSM* iStateMachineMock;
       
    82          CCoeEnv* iCoeEnvMock;
       
    83          CSmcMockContext* iMockContext;
       
    84          CPhoneAccessoryBTHandler* iCPhoneAccessoryBTHandler;
       
    85          TBool iEntryCleared;
       
    86          CPEEngineInfo* iEngineInfoMock;
       
    87 
       
    88         EUNIT_DECLARE_TEST_TABLE;
       
    89 
       
    90     };
       
    91 
       
    92 #endif      //  __UT_CPHONEACCESSORYBTHANDLER_H__