multimediacommsengine/mmcesrv/mmcemediamanager/tsrc/ut_mediamanager/src/UT_cmcemediasdpcodec.cpp
branchRCL_3
changeset 14 5bf83dc720b3
parent 0 1bce908db942
child 18 91f50911ea81
child 26 bcc434605a01
equal deleted inserted replaced
11:2a28ef775f15 14:5bf83dc720b3
  1431 	
  1431 	
  1432 	MCE_EUNIT_ASSERT_LEAVE( iSdpCodec->DecodeDirectionL(*audioLine, *mediaStream, *sdp, aRole ));
  1432 	MCE_EUNIT_ASSERT_LEAVE( iSdpCodec->DecodeDirectionL(*audioLine, *mediaStream, *sdp, aRole ));
  1433 			
  1433 			
  1434 	// Ensure old school to be used next		
  1434 	// Ensure old school to be used next		
  1435 	EUNIT_ASSERT( iSession->SdpSession().iOOldSchool == 1 );
  1435 	EUNIT_ASSERT( iSession->SdpSession().iOOldSchool == 1 );
  1436 	
  1436 
  1437 	CleanupStack::PopAndDestroy( sdp );
  1437     CleanupStack::PopAndDestroy( sdp );
  1438 	
  1438 
       
  1439     sdp = CSdpDocument::DecodeL( KMceTestSdpAMRWithOutDirection );
       
  1440     CleanupStack::PushL( sdp );
       
  1441     iSession->SdpSession().iOOldSchool = 1; // OldSchool Tried Already
       
  1442     audioLine = sdp->MediaFields()[ 0 ];
       
  1443     mediaStream = iSession->Streams()[ 0 ];
       
  1444     mediaStream->SetDirection( SdpCodecStringConstants::EAttributeSendrecv );
       
  1445 
       
  1446     aRole = EMceRoleOfferer;
       
  1447 
       
  1448     // Check if we offer Sendrecv to unhold the call and the other party
       
  1449     // is just only accept oldschool hold.
       
  1450     iSdpCodec->DecodeDirectionL(*audioLine, *mediaStream, *sdp, aRole );
       
  1451 
       
  1452     EUNIT_ASSERT( iSession->SdpSession().iOOldSchool == 1 );
       
  1453     EUNIT_ASSERT( mediaStream->Direction() == SdpCodecStringConstants::EAttributeSendrecv );
       
  1454     CleanupStack::PopAndDestroy( sdp );
       
  1455     
  1439 	}
  1456 	}
  1440 	
  1457 	
  1441 
  1458 
  1442 void UT_CMceMediaSdpCodec::UT_CMceMediaSdpCodec_DecodeRtpmapLinesLL() 
  1459 void UT_CMceMediaSdpCodec::UT_CMceMediaSdpCodec_DecodeRtpmapLinesLL() 
  1443 	{
  1460 	{