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

Unified Diff: webrtc/common_video/i420_video_frame_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/common_video/i420_video_frame_unittest.cc
diff --git a/webrtc/common_video/i420_video_frame_unittest.cc b/webrtc/common_video/i420_video_frame_unittest.cc
index 8c97ca7ac4c0d7750136d9605800b6642658ea1e..31567796216303c256fc5a6858e10c787ee4cebb 100644
--- a/webrtc/common_video/i420_video_frame_unittest.cc
+++ b/webrtc/common_video/i420_video_frame_unittest.cc
@@ -114,7 +114,7 @@ void CheckRotate(int width, int height, webrtc::VideoRotation rotation,
TEST(TestVideoFrame, WidthHeightValues) {
VideoFrame frame(I420Buffer::Create(10, 10, 10, 14, 90),
- webrtc::kVideoRotation_0,
+ webrtc::kVideoRotation_0, webrtc::kVideoContent_Default,
789 * rtc::kNumMicrosecsPerMillisec);
const int valid_value = 10;
EXPECT_EQ(valid_value, frame.width());
@@ -147,12 +147,9 @@ TEST(TestVideoFrame, ShallowCopy) {
memset(buffer_u, 8, kSizeU);
memset(buffer_v, 4, kSizeV);
- VideoFrame frame1(
- I420Buffer::Copy(width, height,
- buffer_y, stride_y,
- buffer_u, stride_u,
- buffer_v, stride_v),
- kRotation, 0);
+ VideoFrame frame1(I420Buffer::Copy(width, height, buffer_y, stride_y,
+ buffer_u, stride_u, buffer_v, stride_v),
+ kRotation, kVideoContent_Default, 0);
frame1.set_timestamp(timestamp);
frame1.set_ntp_time_ms(ntp_time_ms);
frame1.set_timestamp_us(timestamp_us);

Powered by Google App Engine
This is Rietveld 408576698