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

Unified Diff: webrtc/modules/video_capture/test/video_capture_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/modules/video_capture/test/video_capture_unittest.cc
diff --git a/webrtc/modules/video_capture/test/video_capture_unittest.cc b/webrtc/modules/video_capture/test/video_capture_unittest.cc
index d0c3ec9b257981c351e4536ca1e02ebec95174fa..2bce809b8721ddbfdf0b1b75cd453fbd37203310 100644
--- a/webrtc/modules/video_capture/test/video_capture_unittest.cc
+++ b/webrtc/modules/video_capture/test/video_capture_unittest.cc
@@ -108,7 +108,7 @@ class TestVideoCaptureCallback
void SetExpectedCapability(VideoCaptureCapability capability) {
CriticalSectionScoped cs(capture_cs_.get());
- capability_= capability;
+ capability_ = capability;
incoming_frames_ = 0;
last_render_time_ms_ = 0;
}
@@ -374,8 +374,8 @@ class VideoCaptureExternalTest : public testing::Test {
((kTestWidth + 1) / 2) * ((kTestHeight + 1) / 2));
memset(buffer->MutableDataV(), 127,
((kTestWidth + 1) / 2) * ((kTestHeight + 1) / 2));
- test_frame_.reset(
- new webrtc::VideoFrame(buffer, 0, 0, webrtc::kVideoRotation_0));
+ test_frame_.reset(new webrtc::VideoFrame(
+ buffer, 0, 0, webrtc::kVideoRotation_0, webrtc::kVideoContent_Default));
SleepMs(1); // Wait 1ms so that two tests can't have the same timestamp.

Powered by Google App Engine
This is Rietveld 408576698