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

Unified Diff: webrtc/media/base/videoengine_unittest.h

Issue 2634273002: Fix flaky WebRtcVideoChannel2BaseTest.GetStats T (Closed)
Patch Set: Created 3 years, 11 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/media/base/videoengine_unittest.h
diff --git a/webrtc/media/base/videoengine_unittest.h b/webrtc/media/base/videoengine_unittest.h
index a571bbc4bf4a08ba058c0030bac30e33ecfa607b..383fafbbc4287aa4f58b316f3f8f81e1c994e30a 100644
--- a/webrtc/media/base/videoengine_unittest.h
+++ b/webrtc/media/base/videoengine_unittest.h
@@ -453,8 +453,12 @@ class VideoMediaChannelTest : public testing::Test,
EXPECT_EQ(0, info.receivers[0].firs_sent);
EXPECT_EQ(0, info.receivers[0].plis_sent);
EXPECT_EQ(0, info.receivers[0].nacks_sent);
- EXPECT_EQ(kVideoWidth, info.receivers[0].frame_width);
- EXPECT_EQ(kVideoHeight, info.receivers[0].frame_height);
+ // Resolution may be lower than the initial capture resolution due to
+ // quality and cpu adaptation.
+ EXPECT_LE(info.receivers[0].frame_width, kVideoWidth);
+ EXPECT_GT(info.receivers[0].frame_width, kVideoWidth / 2);
+ EXPECT_LE(info.receivers[0].frame_height, kVideoHeight);
+ EXPECT_GT(info.receivers[0].frame_height, kVideoHeight / 2);
EXPECT_GT(info.receivers[0].framerate_rcvd, 0);
EXPECT_GT(info.receivers[0].framerate_decoded, 0);
EXPECT_GT(info.receivers[0].framerate_output, 0);
« 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