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); |