Make EndToEndTest.ContentTypeSwitches more robust by sending more frames before test ends

BUG=webrtc:7485

Review-Url: https://codereview.webrtc.org/2818723002
Cr-Commit-Position: refs/heads/master@{#17744}
This commit is contained in:
ilnik 2017-04-18 09:17:53 -07:00 committed by Commit bot
parent 3c9a6c0aff
commit f6f808f036

View File

@ -2726,7 +2726,8 @@ TEST_F(EndToEndTest, MAYBE_ContentTypeSwitches) {
}
bool MinNumberOfFramesReceived() const {
const int kMinRequiredHistogramSamples = 200;
// Have some room for frames with wrong content type during switch.
const int kMinRequiredHistogramSamples = 200+50;
rtc::CritScope lock(&crit_);
return num_frames_received_ > kMinRequiredHistogramSamples;
}