rtp/rtpstack/tsrc/ut_rtpstack/src/UT_CRtpSession.cpp
branchRCL_3
changeset 43 b5e99d8877c7
parent 0 307788aac0a8
child 44 0dcb073356a5
equal deleted inserted replaced
41:f54bfd820e04 43:b5e99d8877c7
  1010     User::WaitForRequest( iSession->iCommNet->iSender[ERTPPort]->iStatus );
  1010     User::WaitForRequest( iSession->iCommNet->iSender[ERTPPort]->iStatus );
  1011     iSession->iCommNet->iSender[ERTPPort]->RunL();
  1011     iSession->iCommNet->iSender[ERTPPort]->RunL();
  1012     iSession->iCommNet->iSender[ERTPPort]->iStatus = TRequestStatus();
  1012     iSession->iCommNet->iSender[ERTPPort]->iStatus = TRequestStatus();
  1013     }
  1013     }
  1014 
  1014 
  1015 void UT_CRtpSession::UT_CRtpSession_SendRtpPacket_1L(  )
  1015 void UT_CRtpSession::UT_CRtpSession_SendRtpPacket_OneL(  )
  1016     {
  1016     {
  1017     TCreateSessionParams sessionParams;
  1017     TCreateSessionParams sessionParams;
  1018     TRtcpParams rtcpParams;
  1018     TRtcpParams rtcpParams;
  1019     rtcpParams.iRtcpFraction = 0.10;
  1019     rtcpParams.iRtcpFraction = 0.10;
  1020     rtcpParams.iSessionBWidth = 65000;
  1020     rtcpParams.iSessionBWidth = 65000;
  1080    	delete iSession2;
  1080    	delete iSession2;
  1081 	iSession2=NULL;  
  1081 	iSession2=NULL;  
  1082   
  1082   
  1083     }
  1083     }
  1084 
  1084 
  1085 void UT_CRtpSession::UT_CRtpSession_SendRtpPacket_2L(  )
  1085 void UT_CRtpSession::UT_CRtpSession_SendRtpPacket_TwoL(  )
  1086     {
  1086     {
  1087     TInt error( KErrNone );
  1087     TInt error( KErrNone );
  1088 
  1088 
  1089     // Initialise lots of values
  1089     // Initialise lots of values
  1090     TRtpSendHeader header;
  1090     TRtpSendHeader header;
  2273     // Restore the previous values
  2273     // Restore the previous values
  2274     iSession->iRtcpEnabled = tempRtcpStatus;
  2274     iSession->iRtcpEnabled = tempRtcpStatus;
  2275     
  2275     
  2276     // "CRtpSession::OnExpired() - passed" ) );
  2276     // "CRtpSession::OnExpired() - passed" ) );
  2277     }
  2277     }
  2278 void UT_CRtpSession::UT_CRtpSession_ScheduleRtcpSend()
  2278 void UT_CRtpSession::UT_CRtpSession_ScheduleRtcpSendL()
  2279     {
  2279     {
  2280     //"") );
  2280     //"") );
  2281     // "Test description: Test scheduling RTCP transmission" ) );
  2281     // "Test description: Test scheduling RTCP transmission" ) );
  2282     // "CRtpSession::ScheduleRtcpSend()" ) );
  2282     // "CRtpSession::ScheduleRtcpSend()" ) );
  2283 
  2283 
  3285 /*EUNIT_TEST(
  3285 /*EUNIT_TEST(
  3286     "SendRtpPacket1 - test ",
  3286     "SendRtpPacket1 - test ",
  3287     "CRtpSession",
  3287     "CRtpSession",
  3288     "SendRtpPacket",
  3288     "SendRtpPacket",
  3289     "FUNCTIONALITY",
  3289     "FUNCTIONALITY",
  3290     SetupL, UT_CRtpSession_SendRtpPacket_1L, Teardown)
  3290     SetupL, UT_CRtpSession_SendRtpPacket_OneL, Teardown)
  3291 */
  3291 */
  3292 
  3292 
  3293 EUNIT_TEST(
  3293 EUNIT_TEST(
  3294     "SendRtpPacket2 - test ",
  3294     "SendRtpPacket2 - test ",
  3295     "CRtpSession",
  3295     "CRtpSession",
  3296     "SendRtpPacket",
  3296     "SendRtpPacket",
  3297     "FUNCTIONALITY",
  3297     "FUNCTIONALITY",
  3298     Setup2L, UT_CRtpSession_SendRtpPacket_2L, Teardown)
  3298     Setup2L, UT_CRtpSession_SendRtpPacket_TwoL, Teardown)
  3299 
  3299 
  3300 EUNIT_TEST(
  3300 EUNIT_TEST(
  3301     "SendRtpPacket3 - test ",
  3301     "SendRtpPacket3 - test ",
  3302     "CRtpSession",
  3302     "CRtpSession",
  3303     "SendRtpPacket",
  3303     "SendRtpPacket",
  3446 EUNIT_TEST(
  3446 EUNIT_TEST(
  3447     "ScheduleRtcpSend - test ",
  3447     "ScheduleRtcpSend - test ",
  3448     "CRtpSession",
  3448     "CRtpSession",
  3449     "ScheduleRtcpSend",
  3449     "ScheduleRtcpSend",
  3450     "FUNCTIONALITY",
  3450     "FUNCTIONALITY",
  3451     SetupL, UT_CRtpSession_ScheduleRtcpSend, Teardown)
  3451     SetupL, UT_CRtpSession_ScheduleRtcpSendL, Teardown)
  3452     
  3452     
  3453 
  3453 
  3454 EUNIT_TEST(
  3454 EUNIT_TEST(
  3455     "OnRtpReceivedL - test ",
  3455     "OnRtpReceivedL - test ",
  3456     "CRtpSession",
  3456     "CRtpSession",