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