Disable check for all sent SSRCs being valid.

Since the code for setting these up will set the codec before setting
SSRCs for the streams, any frames sent in between will be sent on
random-generated SSRCs.

This part should be added back during work on issue 1695.

BUG=1695
R=stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/4629004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5192 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org 2013-11-28 15:40:12 +00:00
parent bd41a84694
commit e1fc3f22ea

View File

@ -115,11 +115,16 @@ void VideoSendStreamTest::SendsSetSsrcs(size_t num_ssrcs,
RTPHeader header;
EXPECT_TRUE(parser_->Parse(packet, static_cast<int>(length), &header));
EXPECT_TRUE(valid_ssrcs_[header.ssrc])
<< "Received unknown SSRC: " << header.ssrc;
if (!valid_ssrcs_[header.ssrc])
observation_complete_->Set();
// TODO(pbos): Reenable this part of the test when #1695 is resolved and
// all SSRCs are allocated on startup. This test was observed
// to fail on TSan as the codec gets set before the SSRCs are
// set up and some frames are sent on a random-generated SSRC
// before the correct SSRC gets set.
//EXPECT_TRUE(valid_ssrcs_[header.ssrc])
// << "Received unknown SSRC: " << header.ssrc;
//
//if (!valid_ssrcs_[header.ssrc])
// observation_complete_->Set();
if (!is_observed_[header.ssrc]) {
is_observed_[header.ssrc] = true;