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:
parent
3c9a6c0aff
commit
f6f808f036
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user