equal
deleted
inserted
replaced
121 |
121 |
122 void UT_CRtpStream::Teardown( ) |
122 void UT_CRtpStream::Teardown( ) |
123 { |
123 { |
124 delete iRecvStream; |
124 delete iRecvStream; |
125 delete iTranStream; |
125 delete iTranStream; |
126 |
|
127 iRecvStream = NULL; |
|
128 iTranStream = NULL; |
|
129 } |
126 } |
130 |
127 |
131 void UT_CRtpStream::UT_CRtpStream_ResetStreamStatL( ) |
128 void UT_CRtpStream::UT_CRtpStream_ResetStreamStatL( ) |
132 { |
129 { |
133 // RECEIVE STREAM |
130 // RECEIVE STREAM |
886 // "CRtpTranStream::RtpStreamProcessRtcpReportSection() - passed" ) ); |
883 // "CRtpTranStream::RtpStreamProcessRtcpReportSection() - passed" ) ); |
887 |
884 |
888 CleanupStack::PopAndDestroy( packet ); |
885 CleanupStack::PopAndDestroy( packet ); |
889 } |
886 } |
890 |
887 |
891 void UT_CRtpStream::UT_CRtpStream_UpdateParamL() |
888 void UT_CRtpStream::UT_CRtpStream_UpdateParam() |
892 { |
889 { |
893 |
890 |
894 // "Test description: Test update of statistics" ) ); |
891 // "Test description: Test update of statistics" ) ); |
895 // "CRtpStream::RtpStreamUpdateParam( TRtpPacketType, TRtpPacketStreamParam* )" ) ); |
892 // "CRtpStream::RtpStreamUpdateParam( TRtpPacketType, TRtpPacketStreamParam* )" ) ); |
896 |
893 |
965 } |
962 } |
966 |
963 |
967 EUNIT_ASSERT(ETrue); |
964 EUNIT_ASSERT(ETrue); |
968 } |
965 } |
969 |
966 |
970 void UT_CRtpStream::UT_CRtpStream_RtpByeAppMethodsL() |
967 void UT_CRtpStream::UT_CRtpStream_RtpByeAppMethods() |
971 { |
968 { |
972 //"") ); |
969 //"") ); |
973 // "Test description: Test creating a BYE packet" ) ); |
970 // "Test description: Test creating a BYE packet" ) ); |
974 // "CRtpTranStream::BuildRtcpBYEPacket( const TDesC8&, CRtpPacket* )" ) ); |
971 // "CRtpTranStream::BuildRtcpBYEPacket( const TDesC8&, CRtpPacket* )" ) ); |
975 |
972 |
1024 |
1021 |
1025 CleanupStack::PopAndDestroy( packet ); |
1022 CleanupStack::PopAndDestroy( packet ); |
1026 EUNIT_ASSERT(ETrue); |
1023 EUNIT_ASSERT(ETrue); |
1027 } |
1024 } |
1028 |
1025 |
1029 void UT_CRtpStream::UT_CRtpStream_TestRtpSRMethodsL() |
1026 void UT_CRtpStream::UT_CRtpStream_TestRtpSRMethods() |
1030 { |
1027 { |
1031 //"") ); |
1028 //"") ); |
1032 // "Test description: Test creating and parsing an SR packet" ) ); |
1029 // "Test description: Test creating and parsing an SR packet" ) ); |
1033 // "CRtpTranStream::RtpStreamCreateRtcpReportSection( CRtpPacket* )" ) ); |
1030 // "CRtpTranStream::RtpStreamCreateRtcpReportSection( CRtpPacket* )" ) ); |
1034 // "CRtpRecvStream::RtpStreamProcessRtcpReportSection( CRtpPacket* )" ) ); |
1031 // "CRtpRecvStream::RtpStreamProcessRtcpReportSection( CRtpPacket* )" ) ); |
1107 |
1104 |
1108 CleanupStack::PopAndDestroy( packet ); |
1105 CleanupStack::PopAndDestroy( packet ); |
1109 EUNIT_ASSERT(ETrue); |
1106 EUNIT_ASSERT(ETrue); |
1110 } |
1107 } |
1111 |
1108 |
1112 void UT_CRtpStream::UT_CRtpStream_TestRtpRRMethodsL() |
1109 void UT_CRtpStream::UT_CRtpStream_TestRtpRRMethods() |
1113 { |
1110 { |
1114 //"") ); |
1111 //"") ); |
1115 // "Test description: Test creating and parsing an RR packet" ) ); |
1112 // "Test description: Test creating and parsing an RR packet" ) ); |
1116 // "CRtpRecvStream::RtpStreamCreateRtcpReportSection( CRtpPacket* )" ) ); |
1113 // "CRtpRecvStream::RtpStreamCreateRtcpReportSection( CRtpPacket* )" ) ); |
1117 // "CRtpTranStream::RtpStreamProcessRtcpReportSection( CRtpPacket* )" ) ); |
1114 // "CRtpTranStream::RtpStreamProcessRtcpReportSection( CRtpPacket* )" ) ); |
1315 } |
1312 } |
1316 |
1313 |
1317 EUNIT_ASSERT(ETrue); |
1314 EUNIT_ASSERT(ETrue); |
1318 } |
1315 } |
1319 |
1316 |
1320 void UT_CRtpStream::UT_CRtpStream_RtpStreamProcessRtpPacketL() |
1317 void UT_CRtpStream::UT_CRtpStream_RtpStreamProcessRtpPacket() |
1321 { |
1318 { |
1322 TInt result(KErrNone); |
1319 TInt result(KErrNone); |
1323 TInt error(KErrNone); |
1320 TInt error(KErrNone); |
1324 |
1321 |
1325 CRtpPacket* pktSnd = CRtpPacket::NewL( KMaxRtpPacketSize, iProfileRTPTimeRates ); |
1322 CRtpPacket* pktSnd = CRtpPacket::NewL( KMaxRtpPacketSize, iProfileRTPTimeRates ); |
1543 EUNIT_TEST( |
1540 EUNIT_TEST( |
1544 "UpdateParam ", |
1541 "UpdateParam ", |
1545 "CRtpStream", |
1542 "CRtpStream", |
1546 "UT_CRtpStream_UpdateParam", |
1543 "UT_CRtpStream_UpdateParam", |
1547 "FUNCTIONALITY", |
1544 "FUNCTIONALITY", |
1548 SetupL, UT_CRtpStream_UpdateParamL, Teardown) |
1545 SetupL, UT_CRtpStream_UpdateParam, Teardown) |
1549 EUNIT_TEST( |
1546 EUNIT_TEST( |
1550 "RtpByeAppMethods", |
1547 "RtpByeAppMethods", |
1551 "CRtpStream", |
1548 "CRtpStream", |
1552 "RtpByeAppMethods", |
1549 "RtpByeAppMethods", |
1553 "FUNCTIONALITY", |
1550 "FUNCTIONALITY", |
1554 SetupL, UT_CRtpStream_RtpByeAppMethodsL, Teardown) |
1551 SetupL, UT_CRtpStream_RtpByeAppMethods, Teardown) |
1555 |
1552 |
1556 EUNIT_TEST( |
1553 EUNIT_TEST( |
1557 "TestRtpSRMethods", |
1554 "TestRtpSRMethods", |
1558 "CRtpStream", |
1555 "CRtpStream", |
1559 "TestRtpSRMethods", |
1556 "TestRtpSRMethods", |
1560 "FUNCTIONALITY", |
1557 "FUNCTIONALITY", |
1561 SetupL, UT_CRtpStream_TestRtpSRMethodsL, Teardown) |
1558 SetupL, UT_CRtpStream_TestRtpSRMethods, Teardown) |
1562 |
1559 |
1563 EUNIT_TEST( |
1560 EUNIT_TEST( |
1564 "TestRtpRRMethods", |
1561 "TestRtpRRMethods", |
1565 "CRtpStream", |
1562 "CRtpStream", |
1566 "TestRtpRRMethods", |
1563 "TestRtpRRMethods", |
1567 "FUNCTIONALITY", |
1564 "FUNCTIONALITY", |
1568 SetupL, UT_CRtpStream_TestRtpRRMethodsL, Teardown) |
1565 SetupL, UT_CRtpStream_TestRtpRRMethods, Teardown) |
1569 |
1566 |
1570 EUNIT_TEST( |
1567 EUNIT_TEST( |
1571 "TestRtpRRMethods", |
1568 "TestRtpRRMethods", |
1572 "CRtpStream", |
1569 "CRtpStream", |
1573 "TestRtpRRMethods", |
1570 "TestRtpRRMethods", |
1576 EUNIT_TEST( |
1573 EUNIT_TEST( |
1577 "StreamProcessRtpPacket", |
1574 "StreamProcessRtpPacket", |
1578 "CRtpStream", |
1575 "CRtpStream", |
1579 "RtpStreamProcessRtpPacket", |
1576 "RtpStreamProcessRtpPacket", |
1580 "FUNCTIONALITY", |
1577 "FUNCTIONALITY", |
1581 SetupL, UT_CRtpStream_RtpStreamProcessRtpPacketL, Teardown) |
1578 SetupL, UT_CRtpStream_RtpStreamProcessRtpPacket, Teardown) |
1582 |
1579 |
1583 |
1580 |
1584 |
1581 |
1585 EUNIT_END_TEST_TABLE |
1582 EUNIT_END_TEST_TABLE |
1586 |
1583 |