mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengoutsession.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     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 
       
    19 #ifndef __UT_MUSENGOUTSESSION_H__
       
    20 #define __UT_MUSENGOUTSESSION_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CMusEngLiveSession;
       
    29 class CLcSessionObserverStub;
       
    30 class CLcUiProviderStub;
       
    31 class CMusEngObserverStub;
       
    32 
       
    33 // CONSTANTS
       
    34 _LIT8( KMusPPreferredIdentityTestHeader, "P-Preferred-Identity: sip:user@domain.com" );
       
    35 _LIT8( KMusTestUri, "sip:user@domain.com" );
       
    36 
       
    37 
       
    38 //  CLASS DEFINITION
       
    39 /**
       
    40  * Tester class for CMusEngOutSession. 
       
    41  * Since CMusEngOutSession is abstract, it is tested via object of its'
       
    42  * concrete child class CMusEngLiveSession. Only concrete implementations
       
    43  * are tested in this tester class. 
       
    44  * 
       
    45  */
       
    46 NONSHARABLE_CLASS( UT_CMusEngOutSession ): public CEUnitTestSuiteClass
       
    47     {
       
    48     public:     // Constructors and destructors
       
    49 
       
    50         /**
       
    51          * Two phase construction
       
    52          */
       
    53         static UT_CMusEngOutSession* NewL();
       
    54         static UT_CMusEngOutSession* NewLC();
       
    55                 
       
    56         /**
       
    57          * Destructor
       
    58          */
       
    59         ~UT_CMusEngOutSession();
       
    60 
       
    61     private: // Constructors and destructors
       
    62 
       
    63         UT_CMusEngOutSession();
       
    64         void ConstructL();
       
    65         
       
    66     private: // Test case setup and teardown
       
    67 
       
    68         void SetupL();
       
    69 
       
    70         void Teardown();
       
    71 
       
    72     private: // Test methdods
       
    73     
       
    74         void UT_EstablishLcSessionL();
       
    75         void UT_EstablishLcSession_RecipientResolvingL();
       
    76         void UT_EstablishLcSession_RegistrationPendingL();
       
    77         void UT_TerminateLcSessionL();
       
    78         void UT_EstablishSessionLL();
       
    79         void UT_HandleTerminationL();
       
    80         void UT_HandleRecipientNotFoundTerminationL();
       
    81         void UT_AdjustVideoCodecLL();
       
    82         void UT_AdjustAudioCodecLL();
       
    83         void UT_CreateMceSessionStructureLL();
       
    84         void UT_ConstructLL();
       
    85         void UT_ContactSavingLL();
       
    86         void UT_RemoteAddressLL();
       
    87         void UT_RemoteDisplayNameL();
       
    88 
       
    89     private:    // Data
       
    90 
       
    91         CMusEngLiveSession* iLiveSession;
       
    92         CLcSessionObserverStub* iLcSessionObserver;
       
    93         CLcUiProviderStub* iLcUiProvider;
       
    94         CMusEngObserverStub* iAudioRoutingObserver;
       
    95 
       
    96         EUNIT_DECLARE_TEST_TABLE;
       
    97     };
       
    98 
       
    99 #endif      //  __UT_MUSENGOUTSESSION_H__
       
   100 
       
   101 // End of file