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

Unified Diff: media/blink/webmediaplayer_impl_unittest.cc

Issue 2622803002: Clean-up: media::PipelineMetadata stores the rotated video size. (Closed)
Patch Set: Addressed comments. 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 | « media/blink/webmediaplayer_impl.cc ('k') | media/remoting/remoting_renderer_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl_unittest.cc
diff --git a/media/blink/webmediaplayer_impl_unittest.cc b/media/blink/webmediaplayer_impl_unittest.cc
index d7ef58e8525b61b96e94f1e8d190b290c12769e2..9fc4322c31a7b7d99c79b6a5ba0645eaf09103db 100644
--- a/media/blink/webmediaplayer_impl_unittest.cc
+++ b/media/blink/webmediaplayer_impl_unittest.cc
@@ -678,10 +678,10 @@ TEST_F(WebMediaPlayerImplTest, NaturalSizeChange_Rotated) {
metadata.natural_size = gfx::Size(320, 240);
metadata.video_rotation = VIDEO_ROTATION_90;
- // For 90/270deg rotations, the natural size should be transposed.
OnMetadata(metadata);
- ASSERT_EQ(blink::WebSize(240, 320), wmpi_->naturalSize());
+ ASSERT_EQ(blink::WebSize(320, 240), wmpi_->naturalSize());
+ // For 90/270deg rotations, the natural size should be transposed.
OnVideoNaturalSizeChange(gfx::Size(1920, 1080));
ASSERT_EQ(blink::WebSize(1080, 1920), wmpi_->naturalSize());
}
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/remoting/remoting_renderer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698