--- a/mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengmcesession.h Tue Aug 31 15:12:07 2010 +0300
+++ b/mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengmcesession.h Wed Sep 01 12:31:01 2010 +0100
@@ -29,8 +29,9 @@
class CMusEngLiveSession;
class CMusEngReceiveSession;
class CMusEngClipSession;
-class CLcSessionObserverStub;
-class CLcUiProviderStub;
+class CMusEngObserverStub;
+class CMceSession;
+class CMusEngMceSession;
// CLASS DEFINITION
/**
@@ -66,69 +67,52 @@
void Teardown();
private: // Test methdods
+
+ void UT_CMusEngMceSession_TerminateLL();
+ void UT_CMusEngMceSession_GetSessionTimeL();
+ void UT_CMusEngMceSession_ConnectionActiveL();
+ void UT_CMusEngMceSession_ContainsAudioLL();
+ void UT_CMusEngMceSession_IsMutedLL();
+ void UT_CMusEngMceSession_OrientationLL();
+ void UT_CMusEngMceSession_SetOrientationLL();
+ void UT_CMusEngMceSession_VolumeUpLL();
+ void UT_CMusEngMceSession_VolumeDownLL();
+ void UT_CMusEngMceSession_SetVolumeLL();
+ void UT_CMusEngMceSession_EnableDisplayL();
+ void UT_CMusEngMceSession_MuteLL();
+ void UT_CMusEngMceSession_UnmuteLL();
+ void UT_CMusEngMceSession_HandleTerminationL();
- void UT_LcSessionStateL();
- void UT_RemoteVideoPlayerL();
- void UT_LocalVideoPlayerL();
- void UT_LocalDisplayNameL();
- void UT_RemoteDisplayNameL();
- void UT_RemoteDetailsL();
- void UT_SetParameterL();
- void UT_ParameterValueL();
- void UT_IsLcAudioMutedL();
- void UT_MuteLcAudioL();
- void UT_MuteLcMicL();
- void UT_EnableLcLoudspeakerL();
- void UT_SetLcVolumeL();
- void UT_GetSessionTimeL();
- void UT_HandleTerminationL();
- void UT_AdjustVideoCodecL();
- void UT_AdjustAudioCodecL();
- void UT_RectChangedL();
- void UT_SetSessionSdpLinesL();
- void UT_SetSessionSdpLines_OperatorL();
- void UT_SetMediaSdpLinesL();
- void UT_SetMediaSdpLines_OperatorL();
- void UT_AdjustStreamsAndCodecsL();
- void UT_IncomingSessionL();
- void UT_IncomingUpdateL();
- void UT_StreamStateChangedL();
- void UT_StreamStateChangedWithSourceL();
- void UT_StreamStateChangedWithSinkL();
- void UT_SessionStateChangedL();
- void UT_HandleSessionStateChanged_EncoderKeyStoringL();
- void UT_SessionConnectionStateChangedL();
- void UT_FailedL();
- void UT_UpdateFailedL();
- void UT_SRReceivedL();
- void UT_RRReceivedL();
- void UT_SsrcAddedL();
- void UT_SsrcRemovedL();
- void UT_UpdateTimerEventL();
- void UT_IsRoamingBetweenAPsAllowedL();
- void UT_SaveContactL();
- void UT_RectL();
- void UT_SetRectLL();
- void UT_SecondaryRectL();
- void UT_SetSecondaryRectLL();
- void UT_EnableDisplayLL();
- void UT_CMusEngMceSession_SetOrientationLL();
- void UT_SetEncodingDeviceLL();
- void UT_SetCodecConfigKeyLL();
- void UT_ReadCodecConfigKeyLL();
- void UT_StoreEncoderConfigInfoLL();
- void UT_StreamStreamingL();
- void UT_InformObserverAboutSessionStateChangeL();
- void UT_InformObserverAboutSessionUpdateL();
- void UT_InformObserverAboutSessionFailureL();
- void UT_InformObserverAboutPlayerStateChangeL();
- void UT_InformObserverAboutPlayerUpdateL();
- void UT_InformObserverAboutPlayerFailureL();
- void UT_LcUiProviderL();
- void UI_IsBackgroundStartupL();
- void UT_InformUiProviderAboutReceivingStartL();
- void UT_SetForegroundStatusL();
- void UT_UpdateLcSessionLL();
+ void UT_CMusEngMceSession_AdjustVideoCodecLL();
+ void UT_CMusEngMceSession_AdjustAudioCodecLL();
+ void UT_CMusEngMceSession_RectChangedLL();
+ void UT_CMusEngMceSession_SetSessionSdpLinesLL();
+ void UT_CMusEngMceSession_AdjustStreamsAndCodecsLL();
+ void UT_CMusEngMceSession_IncomingSessionL();
+ void UT_CMusEngMceSession_IncomingUpdateL();
+ void UT_CMusEngMceSession_StreamStateChangedL();
+ void UT_CMusEngMceSession_StreamStateChangedWithSourceL();
+ void UT_CMusEngMceSession_StreamStateChangedWithSinkL();
+ void UT_CMusEngMceSession_SessionStateChangedL();
+ void UT_CMusEngMceSession_SessionConnectionStateChangedL();
+ void UT_CMusEngMceSession_FailedL();
+ void UT_CMusEngMceSession_UpdateFailedL();
+
+ void UT_CMusEngMceSession_SRReceivedL();
+ void UT_CMusEngMceSession_RRReceivedL();
+ void UT_CMusEngMceSession_InactivityTimeoutL();
+ void UT_CMusEngMceSession_SsrcAddedL();
+ void UT_CMusEngMceSession_SsrcRemovedL();
+ void UT_CMusEngMceSession_UpdateTimerEventL();
+ void UT_CMusEngMceSession_IsRoamingBetweenAPsAllowedL();
+ void UT_CMusEngMceSession_IsDisplayEnabledLL();
+
+ void UT_CMusEngMceSession_VolumeChangedL();
+
+ private:
+
+ void SetMaxVolForSpeakersL(CMceSession& aSession, TInt aMaxVol);
+ TBool VerifySpeakersVolume(CMusEngMceSession& aSession, TInt aVolume);
private: // Data
@@ -136,8 +120,8 @@
CMusEngReceiveSession* iReceiveSession;
CMusEngClipSession* iClipSession;
CMusEngLiveSession* iSomeOtherSession;
- CLcSessionObserverStub* iLcSessionObserver;
- CLcUiProviderStub* iLcUiProvider;
+ CMusEngObserverStub* iObserver;
+
TMceTransactionDataContainer iContainer;
EUNIT_DECLARE_TEST_TABLE;
};