mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengmcesession.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_MUSENGMCESESSION_H__
       
    20 #define __UT_MUSENGMCESESSION_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 #include <mcetransactiondatacontainer.h>
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 class CMusEngLiveSession;
       
    30 class CMusEngReceiveSession;
       
    31 class CMusEngClipSession;
       
    32 class CLcSessionObserverStub;
       
    33 class CLcUiProviderStub;
       
    34 
       
    35 //  CLASS DEFINITION
       
    36 /**
       
    37 * Tester class for CMusEngMceSession. 
       
    38 * Since CMusEngMceSession is abstract, it is tested via object of its'
       
    39 * concrete descendant class CMusEngLiveSession. Only concrete 
       
    40 * implementations are tested in this tester class. 
       
    41 * 
       
    42 */
       
    43 NONSHARABLE_CLASS( UT_CMusEngMceSession ): public CEUnitTestSuiteClass
       
    44     {
       
    45     public:     // Constructors and destructors
       
    46 
       
    47         /**
       
    48          * Two phase construction
       
    49          */
       
    50         static UT_CMusEngMceSession* NewL();
       
    51         static UT_CMusEngMceSession* NewLC();
       
    52         
       
    53         /**
       
    54          * Destructor
       
    55          */
       
    56         ~UT_CMusEngMceSession();
       
    57 
       
    58     private: // Constructors and destructors
       
    59 
       
    60         UT_CMusEngMceSession();
       
    61         void ConstructL();
       
    62         
       
    63     private: // Test case setup and teardown
       
    64 
       
    65         void SetupL();
       
    66         void Teardown();
       
    67 
       
    68     private: // Test methdods
       
    69 
       
    70         void UT_LcSessionStateL();
       
    71         void UT_RemoteVideoPlayerL();
       
    72         void UT_LocalVideoPlayerL();          
       
    73         void UT_LocalDisplayNameL();
       
    74         void UT_RemoteDisplayNameL();
       
    75         void UT_RemoteDetailsL();
       
    76         void UT_SetParameterL();
       
    77         void UT_ParameterValueL();
       
    78         void UT_IsLcAudioMutedL();
       
    79         void UT_MuteLcAudioL();
       
    80         void UT_MuteLcMicL();
       
    81         void UT_EnableLcLoudspeakerL();
       
    82         void UT_SetLcVolumeL();        
       
    83         void UT_GetSessionTimeL();
       
    84         void UT_HandleTerminationL();
       
    85         void UT_AdjustVideoCodecL();
       
    86         void UT_AdjustAudioCodecL();
       
    87         void UT_RectChangedL();
       
    88         void UT_SetSessionSdpLinesL();
       
    89         void UT_SetSessionSdpLines_OperatorL();
       
    90         void UT_SetMediaSdpLinesL();
       
    91         void UT_SetMediaSdpLines_OperatorL();
       
    92         void UT_AdjustStreamsAndCodecsL();
       
    93         void UT_IncomingSessionL();
       
    94         void UT_IncomingUpdateL();
       
    95         void UT_StreamStateChangedL();
       
    96         void UT_StreamStateChangedWithSourceL();
       
    97         void UT_StreamStateChangedWithSinkL();
       
    98         void UT_SessionStateChangedL();
       
    99         void UT_HandleSessionStateChanged_EncoderKeyStoringL();
       
   100         void UT_SessionConnectionStateChangedL();
       
   101         void UT_FailedL();
       
   102         void UT_UpdateFailedL();
       
   103         void UT_SRReceivedL();
       
   104         void UT_RRReceivedL();        
       
   105         void UT_SsrcAddedL();
       
   106         void UT_SsrcRemovedL();
       
   107         void UT_UpdateTimerEventL();
       
   108         void UT_IsRoamingBetweenAPsAllowedL();
       
   109         void UT_SaveContactL();
       
   110         void UT_RectL();
       
   111         void UT_SetRectLL();
       
   112         void UT_SecondaryRectL();
       
   113         void UT_SetSecondaryRectLL();
       
   114         void UT_EnableDisplayLL();
       
   115         void UT_CMusEngMceSession_SetOrientationLL();
       
   116         void UT_SetEncodingDeviceLL();
       
   117         void UT_SetCodecConfigKeyLL();
       
   118         void UT_ReadCodecConfigKeyLL();
       
   119         void UT_StoreEncoderConfigInfoLL();
       
   120         void UT_StreamStreamingL();
       
   121         void UT_InformObserverAboutSessionStateChangeL();
       
   122         void UT_InformObserverAboutSessionUpdateL();
       
   123         void UT_InformObserverAboutSessionFailureL();
       
   124         void UT_InformObserverAboutPlayerStateChangeL();
       
   125         void UT_InformObserverAboutPlayerUpdateL();
       
   126         void UT_InformObserverAboutPlayerFailureL();      
       
   127         void UT_LcUiProviderL(); 
       
   128         void UI_IsBackgroundStartupL();
       
   129         void UT_InformUiProviderAboutReceivingStartL();
       
   130         void UT_SetForegroundStatusL();
       
   131         void UT_UpdateLcSessionLL();
       
   132         
       
   133     private:    // Data
       
   134 
       
   135         CMusEngLiveSession* iLiveSession;
       
   136         CMusEngReceiveSession* iReceiveSession;
       
   137         CMusEngClipSession* iClipSession;
       
   138         CMusEngLiveSession* iSomeOtherSession;
       
   139         CLcSessionObserverStub* iLcSessionObserver;
       
   140         CLcUiProviderStub* iLcUiProvider;
       
   141         TMceTransactionDataContainer iContainer;
       
   142         EUNIT_DECLARE_TEST_TABLE;
       
   143     };
       
   144 
       
   145 #endif      //  __UT_MUSENGMCESESSION_H__
       
   146 
       
   147 // End of file