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

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

Issue 82593005: Cast: Switching recevier to use media::VideoFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing includes Created 7 years 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/cast/cast_receiver.h ('k') | media/cast/test/end2end_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/encode_decode_test.cc
diff --git a/media/cast/test/encode_decode_test.cc b/media/cast/test/encode_decode_test.cc
index c63357e92d617131913f46b24519d5cd3e7aec69..d2ef04f94378821c8f5d2b7629962a458b6f905e 100644
--- a/media/cast/test/encode_decode_test.cc
+++ b/media/cast/test/encode_decode_test.cc
@@ -43,14 +43,16 @@ class EncodeDecodeTestFrameCallback :
PopulateVideoFrame(original_frame_.get(), start_value);
}
- void DecodeComplete(scoped_ptr<I420VideoFrame> decoded_frame,
+ void DecodeComplete(const scoped_refptr<media::VideoFrame>& decoded_frame,
const base::TimeTicks& render_time) {
++num_called_;
// Compare resolution.
- EXPECT_EQ(original_frame_->coded_size().width(), decoded_frame->width);
- EXPECT_EQ(original_frame_->coded_size().height(), decoded_frame->height);
+ EXPECT_EQ(original_frame_->coded_size().width(),
+ decoded_frame->coded_size().width());
+ EXPECT_EQ(original_frame_->coded_size().height(),
+ decoded_frame->coded_size().height());
// Compare data.
- EXPECT_GT(I420PSNR(*(original_frame_.get()), *(decoded_frame.get())), 40.0);
+ EXPECT_GT(I420PSNR(original_frame_, decoded_frame), 40.0);
}
int num_called() const {
« no previous file with comments | « media/cast/cast_receiver.h ('k') | media/cast/test/end2end_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698