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

Unified Diff: webrtc/media/base/videobroadcaster_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/media/base/videobroadcaster_unittest.cc
diff --git a/webrtc/media/base/videobroadcaster_unittest.cc b/webrtc/media/base/videobroadcaster_unittest.cc
index 5274868204589856369a9a1a46a9b41c68c37b7c..854d7caa38a0589d08371a0d7d7b1f32c7826a66 100644
--- a/webrtc/media/base/videobroadcaster_unittest.cc
+++ b/webrtc/media/base/videobroadcaster_unittest.cc
@@ -46,7 +46,8 @@ TEST(VideoBroadcasterTest, OnFrame) {
// Initialize, to avoid warnings on use of initialized values.
webrtc::I420Buffer::SetBlack(buffer);
- webrtc::VideoFrame frame(buffer, webrtc::kVideoRotation_0, 0);
+ webrtc::VideoFrame frame(buffer, webrtc::kVideoRotation_0,
+ webrtc::kVideoContent_Default, 0);
broadcaster.OnFrame(frame);
EXPECT_EQ(1, sink1.num_rendered_frames());
@@ -147,6 +148,7 @@ TEST(VideoBroadcasterTest, SinkWantsBlackFrames) {
buffer->InitializeData();
webrtc::VideoFrame frame1(buffer, webrtc::kVideoRotation_0,
+ webrtc::kVideoContent_Default,
10 /* timestamp_us */);
broadcaster.OnFrame(frame1);
EXPECT_TRUE(sink1.black_frame());
@@ -161,6 +163,7 @@ TEST(VideoBroadcasterTest, SinkWantsBlackFrames) {
broadcaster.AddOrUpdateSink(&sink2, wants2);
webrtc::VideoFrame frame2(buffer, webrtc::kVideoRotation_0,
+ webrtc::kVideoContent_Default,
30 /* timestamp_us */);
broadcaster.OnFrame(frame2);
EXPECT_FALSE(sink1.black_frame());

Powered by Google App Engine
This is Rietveld 408576698