multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccSymDlStream.cpp
changeset 43 bf4e57f9a0ce
parent 0 1bce908db942
child 59 b0e4b01681c5
--- 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<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(  )