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

Unified Diff: media/filters/video_renderer_base_unittest.cc

Issue 10824141: Remove VideoDecoder::natural_size() & added VideoFrame::natural_size(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright year. Created 8 years, 5 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/filters/video_renderer_base.cc ('k') | media/media.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_renderer_base_unittest.cc
diff --git a/media/filters/video_renderer_base_unittest.cc b/media/filters/video_renderer_base_unittest.cc
index 9b38dfad0221fc0c54e7a0b2bd45980e5abfc7ff..d08670ebf347b749becafe58194f0e3d7e9ae202 100644
--- a/media/filters/video_renderer_base_unittest.cc
+++ b/media/filters/video_renderer_base_unittest.cc
@@ -94,9 +94,6 @@ class VideoRendererBaseTest : public ::testing::Test {
InSequence s;
- // We expect the video size to be set.
- EXPECT_CALL(*this, OnNaturalSizeChanged(kNaturalSize));
-
// Set playback rate before anything else happens.
renderer_->SetPlaybackRate(1.0f);
@@ -116,6 +113,9 @@ class VideoRendererBaseTest : public ::testing::Test {
base::Bind(&VideoRendererBaseTest::GetDuration,
base::Unretained(this)));
+ // We expect the video size to be set.
+ EXPECT_CALL(*this, OnNaturalSizeChanged(kNaturalSize));
+
// Start prerolling.
Preroll(0);
}
@@ -253,8 +253,7 @@ class VideoRendererBaseTest : public ::testing::Test {
// Creates a frame with given timestamp.
scoped_refptr<VideoFrame> CreateFrame(int64 timestamp) {
scoped_refptr<VideoFrame> frame =
- VideoFrame::CreateFrame(VideoFrame::RGB32, kNaturalSize.width(),
- kNaturalSize.height(),
+ VideoFrame::CreateFrame(VideoFrame::RGB32, kNaturalSize, kNaturalSize,
base::TimeDelta::FromMicroseconds(timestamp));
return frame;
}
« no previous file with comments | « media/filters/video_renderer_base.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698