1348 |
1348 |
1349 CleanupStack::PopAndDestroy( sdp ); |
1349 CleanupStack::PopAndDestroy( sdp ); |
1350 |
1350 |
1351 } |
1351 } |
1352 |
1352 |
1353 |
1353 void UT_CMceMediaSdpCodec::UT_CMceMediaSdpCodec_DecodeSecureSessionLL() |
|
1354 { |
|
1355 CSdpDocument* sdp = CSdpDocument::DecodeL( KMceTestSdpAMR ); |
|
1356 CSdpMediaField* audioLine = sdp->MediaFields()[ 0 ]; |
|
1357 iSession->SecureSessionL(); |
|
1358 |
|
1359 CMceComMediaStream* mediaStream = iSession->Streams()[ 0 ]; |
|
1360 CMceSecureMediaSession* secureSession = iSession->SecureSession(); |
|
1361 |
|
1362 CleanupStack::PushL( sdp ); |
|
1363 secureSession->iKeyNeedUpdated = EFalse; |
|
1364 iSdpCodec->DecodeSecureSessionL(*audioLine, *mediaStream, EMceRoleAnswerer, ETrue ); |
|
1365 |
|
1366 EUNIT_ASSERT( secureSession->iKeyNeedUpdated == ETrue ); |
|
1367 CleanupStack::PopAndDestroy( sdp ); |
|
1368 } |
1354 |
1369 |
1355 void UT_CMceMediaSdpCodec::UT_CMceMediaSdpCodec_DecodeDirectionLL() |
1370 void UT_CMceMediaSdpCodec::UT_CMceMediaSdpCodec_DecodeDirectionLL() |
1356 { |
1371 { |
1357 CSdpDocument* sdp = CSdpDocument::DecodeL( KMceTestSdpAMR ); |
1372 CSdpDocument* sdp = CSdpDocument::DecodeL( KMceTestSdpAMR ); |
1358 CleanupStack::PushL( sdp ); |
1373 CleanupStack::PushL( sdp ); |
1656 "CMceMediaSdpCodec", |
1671 "CMceMediaSdpCodec", |
1657 "EncodelocalRtcpAttr", |
1672 "EncodelocalRtcpAttr", |
1658 "FUNCTIONALITY", |
1673 "FUNCTIONALITY", |
1659 SetupL, UT_CMceMediaSdpCodec_EncodelocalRtcpAttrLL, Teardown) |
1674 SetupL, UT_CMceMediaSdpCodec_EncodelocalRtcpAttrLL, Teardown) |
1660 |
1675 |
1661 |
1676 EUNIT_TEST ( |
|
1677 "DecodeSecureSessionL test", |
|
1678 "CMceMediaSdpCodec", |
|
1679 "DecodeSecureSessionL", |
|
1680 "FUNCTIONALITY", |
|
1681 SetupL, UT_CMceMediaSdpCodec_DecodeSecureSessionLL, Teardown) |
|
1682 |
1662 EUNIT_TEST ( |
1683 EUNIT_TEST ( |
1663 "DecodeDirection test", |
1684 "DecodeDirection test", |
1664 "CMceMediaSdpCodec", |
1685 "CMceMediaSdpCodec", |
1665 "DecodeDirectionAttribute", |
1686 "DecodeDirectionL", |
1666 "FUNCTIONALITY", |
1687 "FUNCTIONALITY", |
1667 SetupL, UT_CMceMediaSdpCodec_DecodeDirectionLL, Teardown) |
1688 SetupL, UT_CMceMediaSdpCodec_DecodeDirectionLL, Teardown) |
1668 |
1689 |
1669 EUNIT_TEST ( |
1690 EUNIT_TEST ( |
1670 "DecodeRtpmapLines test", |
1691 "DecodeRtpmapLines test", |