Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: webrtc/video/end_to_end_tests.cc

Issue 2818723002: Make EndToEndTest.ContentTypeSwitches more robust by sending more frames before test ends (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/end_to_end_tests.cc
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc
index f171c5b3883ea1fbc524959f7bfc82be3bdb74da..0c76b0fc56ac274643c42761c6a78ad9bcf9b70f 100644
--- a/webrtc/video/end_to_end_tests.cc
+++ b/webrtc/video/end_to_end_tests.cc
@@ -2720,7 +2720,8 @@ TEST_F(EndToEndTest, 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698