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

Unified Diff: ppapi/tests/test_video_encoder.cc

Issue 1085003002: pepper: VideoEncoder: use same constraints as media::VideoFrame for software encoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not wait on invalid callback Created 5 years, 8 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/pepper/video_encoder_shim.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_video_encoder.cc
diff --git a/ppapi/tests/test_video_encoder.cc b/ppapi/tests/test_video_encoder.cc
index 50a936a546fa9e8086498618262eff180f9e3078..2a574732917dd3e122dc49e9b82e03105c92e474 100644
--- a/ppapi/tests/test_video_encoder.cc
+++ b/ppapi/tests/test_video_encoder.cc
@@ -84,6 +84,16 @@ std::string TestVideoEncoder::TestCreate() {
ASSERT_EQ(PP_OK, video_encoder.GetFrameCodedSize(&coded_size));
ASSERT_GE(coded_size.GetArea(), video_size.GetArea());
ASSERT_GE(video_encoder.GetFramesRequired(), 1);
+
+ TestCompletionCallbackWithOutput<pp::VideoFrame> get_video_frame(
+ instance_->pp_instance(), false);
+ get_video_frame.WaitForResult(
+ video_encoder.GetVideoFrame(get_video_frame.GetCallback()));
+ ASSERT_EQ(PP_OK, get_video_frame.result());
+
+ pp::Size video_frame_size;
+ ASSERT_TRUE(get_video_frame.output().GetSize(&video_frame_size));
+ ASSERT_EQ(coded_size.GetArea(), video_frame_size.GetArea());
}
PASS();
« no previous file with comments | « content/renderer/pepper/video_encoder_shim.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698