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

Unified Diff: content/renderer/media/rtc_video_decoder_unittest.cc

Issue 7932005: Reland r101418: Fix aspect ratio and clarify video frame dimensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « content/renderer/media/rtc_video_decoder.cc ('k') | media/base/composite_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder_unittest.cc
diff --git a/content/renderer/media/rtc_video_decoder_unittest.cc b/content/renderer/media/rtc_video_decoder_unittest.cc
index a24777716d8595ad963697335c2fb2c7ad68487a..42954d222467d5d3c257cbbd8f9cfe5d8cc04ecc 100644
--- a/content/renderer/media/rtc_video_decoder_unittest.cc
+++ b/content/renderer/media/rtc_video_decoder_unittest.cc
@@ -160,8 +160,8 @@ TEST_F(RTCVideoDecoderTest, Initialize_Successful) {
// Test that the output media format is an uncompressed video surface that
// matches the dimensions specified by RTC.
- EXPECT_EQ(kWidth, decoder_->width());
- EXPECT_EQ(kHeight, decoder_->height());
+ EXPECT_EQ(kWidth, decoder_->natural_size().width());
+ EXPECT_EQ(kHeight, decoder_->natural_size().height());
}
TEST_F(RTCVideoDecoderTest, DoSeek) {
@@ -215,15 +215,16 @@ TEST_F(RTCVideoDecoderTest, DoSetSize) {
int new_width = kWidth * 2;
int new_height = kHeight * 2;
+ gfx::Size new_natural_size(new_width, new_height);
int new_reserved = 0;
EXPECT_CALL(host_,
- SetVideoSize(new_width, new_height)).WillRepeatedly(Return());
+ SetNaturalVideoSize(new_natural_size)).WillRepeatedly(Return());
decoder_->SetSize(new_width, new_height, new_reserved);
- EXPECT_EQ(new_width, decoder_->width());
- EXPECT_EQ(new_height, decoder_->height());
+ EXPECT_EQ(new_width, decoder_->natural_size().width());
+ EXPECT_EQ(new_height, decoder_->natural_size().height());
message_loop_.RunAllPending();
}
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | media/base/composite_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698