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

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

Issue 1884383002: VideoTrackRecorder: Adding inner class H264Encoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hbos@ comments: adding explicit dep to openh264 in content.gyp and content/renderer/BUILD.gn Created 4 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/media/video_track_recorder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_track_recorder_unittest.cc
diff --git a/content/renderer/media/video_track_recorder_unittest.cc b/content/renderer/media/video_track_recorder_unittest.cc
index 2892df4cdeced2b46e40f52504021a6bb36454ee..0ca52bb339722c178c2c685d609bfd881f8c19e8 100644
--- a/content/renderer/media/video_track_recorder_unittest.cc
+++ b/content/renderer/media/video_track_recorder_unittest.cc
@@ -41,7 +41,12 @@ ACTION_P(RunClosure, closure) {
}
const VideoTrackRecorder::CodecId kTrackRecorderTestCodec[] = {
- VideoTrackRecorder::CodecId::VP8, VideoTrackRecorder::CodecId::VP9};
+ VideoTrackRecorder::CodecId::VP8,
+ VideoTrackRecorder::CodecId::VP9
+#if BUILDFLAG(RTC_USE_H264)
+ , VideoTrackRecorder::CodecId::H264
+#endif
+};
class VideoTrackRecorderTest
: public TestWithParam<VideoTrackRecorder::CodecId> {
@@ -165,7 +170,7 @@ TEST_P(VideoTrackRecorderTest, VideoEncoding) {
run_loop.Run();
- const size_t kEncodedSizeThreshold = 18;
+ const size_t kEncodedSizeThreshold = 14;
EXPECT_GE(first_frame_encoded_data.size(), kEncodedSizeThreshold);
EXPECT_GE(second_frame_encoded_data.size(), kEncodedSizeThreshold);
EXPECT_GE(third_frame_encoded_data.size(), kEncodedSizeThreshold);
« no previous file with comments | « content/renderer/media/video_track_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698