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

Unified Diff: webrtc/video/vie_encoder_unittest.cc

Issue 2772033002: Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Set EncodedImage content_type from vie_encoder Created 3 years, 9 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
Index: webrtc/video/vie_encoder_unittest.cc
diff --git a/webrtc/video/vie_encoder_unittest.cc b/webrtc/video/vie_encoder_unittest.cc
index eedf771ac6d907ee44fb836b4b429f5901461a2d..99a0d3056b497f672227e977c698a5bb5ff016e9 100644
--- a/webrtc/video/vie_encoder_unittest.cc
+++ b/webrtc/video/vie_encoder_unittest.cc
@@ -70,7 +70,8 @@ class ViEEncoderUnderTest : public ViEEncoder {
stats_proxy,
settings,
nullptr /* pre_encode_callback */,
- nullptr /* encoder_timing */) {}
+ nullptr /* encoder_timing */,
+ VideoEncoderConfig::ContentType::kRealtimeVideo) {}
void PostTaskAndWait(bool down, AdaptReason reason) {
rtc::Event event(false, false);
@@ -150,7 +151,7 @@ class AdaptingFrameForwarder : public test::FrameForwarder {
&out_width, &out_height)) {
VideoFrame adapted_frame(
new rtc::RefCountedObject<TestBuffer>(nullptr, out_width, out_height),
- 99, 99, kVideoRotation_0);
+ 99, 99, kVideoRotation_0, webrtc::kVideoContent_Default);
adapted_frame.set_ntp_time_ms(video_frame.ntp_time_ms());
test::FrameForwarder::IncomingCapturedFrame(adapted_frame);
} else {
@@ -232,7 +233,7 @@ class ViEEncoderTest : public ::testing::Test {
rtc::Event* destruction_event) const {
VideoFrame frame(new rtc::RefCountedObject<TestBuffer>(
destruction_event, codec_width_, codec_height_),
- 99, 99, kVideoRotation_0);
+ 99, 99, kVideoRotation_0, webrtc::kVideoContent_Default);
frame.set_ntp_time_ms(ntp_time_ms);
return frame;
}
@@ -240,7 +241,7 @@ class ViEEncoderTest : public ::testing::Test {
VideoFrame CreateFrame(int64_t ntp_time_ms, int width, int height) const {
VideoFrame frame(
new rtc::RefCountedObject<TestBuffer>(nullptr, width, height), 99, 99,
- kVideoRotation_0);
+ kVideoRotation_0, webrtc::kVideoContent_Default);
frame.set_ntp_time_ms(ntp_time_ms);
return frame;
}

Powered by Google App Engine
This is Rietveld 408576698