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

Side by Side Diff: webrtc/test/call_test.cc

Issue 2361803003: Add logging statements to places where the frame might be dropped in WebRTC pipeline. (Closed)
Patch Set: Remove the DCHECK since it will crash anyway. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/base/checks.h" 10 #include "webrtc/base/checks.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) { 203 void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) {
204 RTC_DCHECK(video_receive_configs_.empty()); 204 RTC_DCHECK(video_receive_configs_.empty());
205 RTC_DCHECK(allocated_decoders_.empty()); 205 RTC_DCHECK(allocated_decoders_.empty());
206 if (num_video_streams_ > 0) { 206 if (num_video_streams_ > 0) {
207 RTC_DCHECK(!video_send_config_.rtp.ssrcs.empty()); 207 RTC_DCHECK(!video_send_config_.rtp.ssrcs.empty());
208 VideoReceiveStream::Config video_config(rtcp_send_transport); 208 VideoReceiveStream::Config video_config(rtcp_send_transport);
209 video_config.rtp.remb = true; 209 video_config.rtp.remb = true;
210 video_config.rtp.local_ssrc = kReceiverLocalVideoSsrc; 210 video_config.rtp.local_ssrc = kReceiverLocalVideoSsrc;
211 for (const RtpExtension& extension : video_send_config_.rtp.extensions) 211 for (const RtpExtension& extension : video_send_config_.rtp.extensions)
212 video_config.rtp.extensions.push_back(extension); 212 video_config.rtp.extensions.push_back(extension);
213 video_config.renderer = &fake_renderer_;
213 for (size_t i = 0; i < video_send_config_.rtp.ssrcs.size(); ++i) { 214 for (size_t i = 0; i < video_send_config_.rtp.ssrcs.size(); ++i) {
214 VideoReceiveStream::Decoder decoder = 215 VideoReceiveStream::Decoder decoder =
215 test::CreateMatchingDecoder(video_send_config_.encoder_settings); 216 test::CreateMatchingDecoder(video_send_config_.encoder_settings);
216 allocated_decoders_.push_back( 217 allocated_decoders_.push_back(
217 std::unique_ptr<VideoDecoder>(decoder.decoder)); 218 std::unique_ptr<VideoDecoder>(decoder.decoder));
218 video_config.decoders.clear(); 219 video_config.decoders.clear();
219 video_config.decoders.push_back(decoder); 220 video_config.decoders.push_back(decoder);
220 video_config.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[i]; 221 video_config.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[i];
221 video_receive_configs_.push_back(video_config.Copy()); 222 video_receive_configs_.push_back(video_config.Copy());
222 } 223 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 430
430 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { 431 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
431 } 432 }
432 433
433 bool EndToEndTest::ShouldCreateReceivers() const { 434 bool EndToEndTest::ShouldCreateReceivers() const {
434 return true; 435 return true;
435 } 436 }
436 437
437 } // namespace test 438 } // namespace test
438 } // namespace webrtc 439 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698