diff -r 72290a6868df -r bf4e57f9a0ce multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccSymDlStream.cpp --- a/multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccSymDlStream.cpp Tue Jul 06 14:42:02 2010 +0300 +++ b/multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccSymDlStream.cpp Wed Aug 18 10:09:50 2010 +0300 @@ -35,6 +35,7 @@ #include "mccmultiplexer.h" #include "mmcccryptocontext.h" #include "mccjitterbuffer.h" +#include "mccrtpmediaclock.h" #include "mccunittestmacros.h" @@ -83,11 +84,13 @@ // METHODS void UT_CMccSymDlStream::SetupL() { + iRtpMediaClock = CMccRtpMediaClock::NewL(); + iResources = CMccResourcePoolStub::NewL(); iStreamId = 1; iHandler = CMccTestEventHandler::NewL(); iRtpMan = CMccRtpManager::NewL( *iHandler, *iResources, iMccSessionId ); - iStream = CMccSymDlStream::NewLC( iStreamId, iHandler, iResources, iRtpMan, 201 ); + iStream = CMccSymDlStream::NewLC( iStreamId, iHandler, iResources, iRtpMan, 201, *iRtpMediaClock ); CleanupStack::Pop( iStream ); TPckgBuf params( 30000 ); @@ -118,11 +121,13 @@ void UT_CMccSymDlStream::Setup2L() { + iRtpMediaClock = CMccRtpMediaClock::NewL(); + iResources = CMccResourcePoolStub::NewL(); iStreamId = 1; iHandler = CMccTestEventHandler::NewL(); iRtpMan = CMccRtpManager::NewL( *iHandler, *iResources, iMccSessionId ); - iStream = CMccSymDlStream::NewLC( iStreamId, iHandler, iResources, iRtpMan, 201 ); + iStream = CMccSymDlStream::NewLC( iStreamId, iHandler, iResources, iRtpMan, 201, *iRtpMediaClock ); CleanupStack::Pop( iStream ); TPckgBuf params( 30000 ); @@ -134,11 +139,13 @@ void UT_CMccSymDlStream::SetupIlbcL() { + iRtpMediaClock = CMccRtpMediaClock::NewL(); + iResources = CMccResourcePoolStub::NewL(); iStreamId = 1; iHandler = CMccTestEventHandler::NewL(); iRtpMan = CMccRtpManager::NewL( *iHandler, *iResources,iMccSessionId ); - iStream = CMccSymDlStream::NewLC( iStreamId, iHandler, iResources, iRtpMan, 201 ); + iStream = CMccSymDlStream::NewLC( iStreamId, iHandler, iResources, iRtpMan, 201, *iRtpMediaClock ); CleanupStack::Pop( iStream ); TPckgBuf params( 30000 ); @@ -185,6 +192,12 @@ delete iSourceStub; delete iSinkStub; delete iResources; + + if ( iRtpMediaClock ) + { + delete iRtpMediaClock; + iRtpMediaClock = NULL; + } } void UT_CMccSymDlStream::UT_CMccSymDlStream_SetPrioritySettingsLL( )