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

Unified Diff: media/cast/test/end2end_unittest.cc

Issue 178133005: Audit/fix use of media::VideoFrame::coded_size() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2121885f Rebase. Created 6 years, 9 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
Index: media/cast/test/end2end_unittest.cc
diff --git a/media/cast/test/end2end_unittest.cc b/media/cast/test/end2end_unittest.cc
index bfdcf0c743cf06f283e79894fde0208d05fca214..96570b0473ce252cc7061d4f981188942030bd1d 100644
--- a/media/cast/test/end2end_unittest.cc
+++ b/media/cast/test/end2end_unittest.cc
@@ -369,8 +369,9 @@ class TestReceiverVideoCallback
<< "time_since_capture - upper_bound == "
<< (time_since_capture - upper_bound).InMilliseconds() << " mS";
EXPECT_LE(expected_video_frame.capture_time, render_time);
- EXPECT_EQ(expected_video_frame.width, video_frame->coded_size().width());
- EXPECT_EQ(expected_video_frame.height, video_frame->coded_size().height());
+ EXPECT_EQ(expected_video_frame.width, video_frame->visible_rect().width());
+ EXPECT_EQ(expected_video_frame.height,
+ video_frame->visible_rect().height());
gfx::Size size(expected_video_frame.width, expected_video_frame.height);
scoped_refptr<media::VideoFrame> expected_I420_frame =

Powered by Google App Engine
This is Rietveld 408576698