multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccSymDlStream.cpp
--- a/multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccSymDlStream.cpp Thu Jun 24 14:41:11 2010 +0300
+++ b/multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccSymDlStream.cpp Fri Jul 09 13:14:28 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<TInt> 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<TInt> 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<TInt> params( 30000 );
@@ -185,6 +192,12 @@
delete iSourceStub;
delete iSinkStub;
delete iResources;
+
+ if ( iRtpMediaClock )
+ {
+ delete iRtpMediaClock;
+ iRtpMediaClock = NULL;
+ }
}
void UT_CMccSymDlStream::UT_CMccSymDlStream_SetPrioritySettingsLL( )