multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMCCSymSimpleDlStream.cpp
changeset 43 bf4e57f9a0ce
parent 0 1bce908db942
child 59 b0e4b01681c5
equal deleted inserted replaced
35:72290a6868df 43:bf4e57f9a0ce
    84 
    84 
    85 
    85 
    86 
    86 
    87 void UT_CMccSymSimpleDlStream::SetupL(  )
    87 void UT_CMccSymSimpleDlStream::SetupL(  )
    88     {
    88     {
       
    89     iRtpMediaClock = CMccRtpMediaClock::NewL();
       
    90     
    89     iResources = CMccResourcePoolStub::NewL();
    91     iResources = CMccResourcePoolStub::NewL();
    90     iEventHandler = CMccTestEventHandler::NewL();
    92     iEventHandler = CMccTestEventHandler::NewL();
    91     iRtpManager = CMccRtpManager::NewL(*iEventHandler, *iResources, iMccSessionId );
    93     iRtpManager = CMccRtpManager::NewL(*iEventHandler, *iResources, iMccSessionId );
    92     iStreamId = 1;
    94     iStreamId = 1;
    93     
    95     
    94     CMccSymSimpleDlStream* stream = CMccSymSimpleDlStream::NewLC(
    96     CMccSymSimpleDlStream* stream = CMccSymSimpleDlStream::NewLC(
    95     	iStreamId, this, iResources, iRtpManager, TFourCC(),  KMccVideoDownlinkStream );
    97     	iStreamId, this, iResources, iRtpManager, TFourCC(),  KMccVideoDownlinkStream, *iRtpMediaClock );
    96     CleanupStack::Pop( stream );
    98     CleanupStack::Pop( stream );
    97     iSimpleDlStream = stream;
    99     iSimpleDlStream = stream;
    98     stream = NULL;
   100     stream = NULL;
    99     
   101     
   100     TPckgBuf<TInt> params( 30000 );
   102     TPckgBuf<TInt> params( 30000 );
   129     delete iSourceStub;
   131     delete iSourceStub;
   130     delete iRtpManager;
   132     delete iRtpManager;
   131     delete iEventHandler;
   133     delete iEventHandler;
   132     delete iResources;
   134     delete iResources;
   133     REComSession::FinalClose();
   135     REComSession::FinalClose();
       
   136     
       
   137     if ( iRtpMediaClock )
       
   138         {
       
   139         delete iRtpMediaClock;
       
   140         iRtpMediaClock = NULL;
       
   141         }
   134     }
   142     }
   135 
   143 
   136 void UT_CMccSymSimpleDlStream::UT_CMccSymSimpleDlStream_CreatePayloadFormatDecoderLL(  )
   144 void UT_CMccSymSimpleDlStream::UT_CMccSymSimpleDlStream_CreatePayloadFormatDecoderLL(  )
   137     {   
   145     {   
   138     MCC_EUNIT_ASSERT_NO_LEAVE( iSimpleDlStream->CreatePayloadFormatDecoderL() );
   146     MCC_EUNIT_ASSERT_NO_LEAVE( iSimpleDlStream->CreatePayloadFormatDecoderL() );