mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengmcesession.h
branchRCL_3
changeset 22 73a1feb507fb
parent 9 ff8a573c0e2e
child 23 bc78a40cd63c
equal deleted inserted replaced
21:33a5d2bbf6fc 22:73a1feb507fb
    27 
    27 
    28 //  FORWARD DECLARATIONS
    28 //  FORWARD DECLARATIONS
    29 class CMusEngLiveSession;
    29 class CMusEngLiveSession;
    30 class CMusEngReceiveSession;
    30 class CMusEngReceiveSession;
    31 class CMusEngClipSession;
    31 class CMusEngClipSession;
    32 class CMusEngObserverStub;
    32 class CLcSessionObserverStub;
    33 class CMceSession;
    33 class CLcUiProviderStub;
    34 class CMusEngMceSession;
       
    35 
    34 
    36 //  CLASS DEFINITION
    35 //  CLASS DEFINITION
    37 /**
    36 /**
    38 * Tester class for CMusEngMceSession. 
    37 * Tester class for CMusEngMceSession. 
    39 * Since CMusEngMceSession is abstract, it is tested via object of its'
    38 * Since CMusEngMceSession is abstract, it is tested via object of its'
    65 
    64 
    66         void SetupL();
    65         void SetupL();
    67         void Teardown();
    66         void Teardown();
    68 
    67 
    69     private: // Test methdods
    68     private: // Test methdods
    70     
    69 
    71         void UT_CMusEngMceSession_TerminateLL();
    70         void UT_LcSessionStateL();
    72         void UT_CMusEngMceSession_GetSessionTimeL();
    71         void UT_RemoteVideoPlayerL();
    73         void UT_CMusEngMceSession_ConnectionActiveL();
    72         void UT_LocalVideoPlayerL();          
    74         void UT_CMusEngMceSession_ContainsAudioLL();
    73         void UT_LocalDisplayNameL();
    75         void UT_CMusEngMceSession_IsMutedLL();
    74         void UT_RemoteDisplayNameL();
    76         void UT_CMusEngMceSession_OrientationLL();
    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();
    77         void UT_CMusEngMceSession_SetOrientationLL();
   115         void UT_CMusEngMceSession_SetOrientationLL();
    78         void UT_CMusEngMceSession_VolumeUpLL();
   116         void UT_SetEncodingDeviceLL();
    79         void UT_CMusEngMceSession_VolumeDownLL();
   117         void UT_SetCodecConfigKeyLL();
    80         void UT_CMusEngMceSession_SetVolumeLL();
   118         void UT_ReadCodecConfigKeyLL();
    81         void UT_CMusEngMceSession_EnableDisplayL();
   119         void UT_StoreEncoderConfigInfoLL();
    82         void UT_CMusEngMceSession_MuteLL();
   120         void UT_StreamStreamingL();
    83         void UT_CMusEngMceSession_UnmuteLL();
   121         void UT_InformObserverAboutSessionStateChangeL();
    84         void UT_CMusEngMceSession_HandleTerminationL();
   122         void UT_InformObserverAboutSessionUpdateL();
    85 
   123         void UT_InformObserverAboutSessionFailureL();
    86         void UT_CMusEngMceSession_AdjustVideoCodecLL();
   124         void UT_InformObserverAboutPlayerStateChangeL();
    87         void UT_CMusEngMceSession_AdjustAudioCodecLL();
   125         void UT_InformObserverAboutPlayerUpdateL();
    88         void UT_CMusEngMceSession_RectChangedLL();
   126         void UT_InformObserverAboutPlayerFailureL();      
    89         void UT_CMusEngMceSession_SetSessionSdpLinesLL();
   127         void UT_LcUiProviderL(); 
    90         void UT_CMusEngMceSession_AdjustStreamsAndCodecsLL();
   128         void UI_IsBackgroundStartupL();
    91         void UT_CMusEngMceSession_IncomingSessionL();
   129         void UT_InformUiProviderAboutReceivingStartL();
    92         void UT_CMusEngMceSession_IncomingUpdateL();
   130         void UT_SetForegroundStatusL();
    93         void UT_CMusEngMceSession_StreamStateChangedL();
   131         void UT_UpdateLcSessionLL();
    94         void UT_CMusEngMceSession_StreamStateChangedWithSourceL();
       
    95         void UT_CMusEngMceSession_StreamStateChangedWithSinkL();
       
    96         void UT_CMusEngMceSession_SessionStateChangedL();
       
    97         void UT_CMusEngMceSession_SessionConnectionStateChangedL();
       
    98         void UT_CMusEngMceSession_FailedL();
       
    99         void UT_CMusEngMceSession_UpdateFailedL();
       
   100         
       
   101         void UT_CMusEngMceSession_SRReceivedL();
       
   102         void UT_CMusEngMceSession_RRReceivedL();
       
   103         void UT_CMusEngMceSession_InactivityTimeoutL();
       
   104         void UT_CMusEngMceSession_SsrcAddedL();
       
   105         void UT_CMusEngMceSession_SsrcRemovedL();
       
   106         void UT_CMusEngMceSession_UpdateTimerEventL();
       
   107         void UT_CMusEngMceSession_IsRoamingBetweenAPsAllowedL(); 
       
   108         void UT_CMusEngMceSession_IsDisplayEnabledLL();
       
   109         
       
   110         void UT_CMusEngMceSession_VolumeChangedL();
       
   111     
       
   112     private:
       
   113         
       
   114         void SetMaxVolForSpeakersL(CMceSession& aSession, TInt aMaxVol);
       
   115         TBool VerifySpeakersVolume(CMusEngMceSession& aSession, TInt aVolume);
       
   116         
   132         
   117     private:    // Data
   133     private:    // Data
   118 
   134 
   119         CMusEngLiveSession* iLiveSession;
   135         CMusEngLiveSession* iLiveSession;
   120         CMusEngReceiveSession* iReceiveSession;
   136         CMusEngReceiveSession* iReceiveSession;
   121         CMusEngClipSession* iClipSession;
   137         CMusEngClipSession* iClipSession;
   122         CMusEngLiveSession* iSomeOtherSession;
   138         CMusEngLiveSession* iSomeOtherSession;
   123         CMusEngObserverStub* iObserver;
   139         CLcSessionObserverStub* iLcSessionObserver;
   124 
   140         CLcUiProviderStub* iLcUiProvider;
   125         TMceTransactionDataContainer iContainer;
   141         TMceTransactionDataContainer iContainer;
   126         EUNIT_DECLARE_TEST_TABLE;
   142         EUNIT_DECLARE_TEST_TABLE;
   127     };
   143     };
   128 
   144 
   129 #endif      //  __UT_MUSENGMCESESSION_H__
   145 #endif      //  __UT_MUSENGMCESESSION_H__