| OLD | NEW |
| 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 | 10 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 // TODO(brandtr): Update this when we support multistream protection. | 226 // TODO(brandtr): Update this when we support multistream protection. |
| 227 if (num_flexfec_streams > 0) { | 227 if (num_flexfec_streams > 0) { |
| 228 video_send_config_.rtp.flexfec.payload_type = kFlexfecPayloadType; | 228 video_send_config_.rtp.flexfec.payload_type = kFlexfecPayloadType; |
| 229 video_send_config_.rtp.flexfec.ssrc = kFlexfecSendSsrc; | 229 video_send_config_.rtp.flexfec.ssrc = kFlexfecSendSsrc; |
| 230 video_send_config_.rtp.flexfec.protected_media_ssrcs = {kVideoSendSsrcs[0]}; | 230 video_send_config_.rtp.flexfec.protected_media_ssrcs = {kVideoSendSsrcs[0]}; |
| 231 } | 231 } |
| 232 } | 232 } |
| 233 | 233 |
| 234 void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) { | 234 void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) { |
| 235 RTC_DCHECK(video_receive_configs_.empty()); | 235 video_receive_configs_.clear(); |
| 236 RTC_DCHECK(allocated_decoders_.empty()); | 236 allocated_decoders_.clear(); |
| 237 if (num_video_streams_ > 0) { | 237 if (num_video_streams_ > 0) { |
| 238 RTC_DCHECK(!video_send_config_.rtp.ssrcs.empty()); | 238 RTC_DCHECK(!video_send_config_.rtp.ssrcs.empty()); |
| 239 VideoReceiveStream::Config video_config(rtcp_send_transport); | 239 VideoReceiveStream::Config video_config(rtcp_send_transport); |
| 240 video_config.rtp.remb = false; | 240 video_config.rtp.remb = false; |
| 241 video_config.rtp.transport_cc = true; | 241 video_config.rtp.transport_cc = true; |
| 242 video_config.rtp.local_ssrc = kReceiverLocalVideoSsrc; | 242 video_config.rtp.local_ssrc = kReceiverLocalVideoSsrc; |
| 243 for (const RtpExtension& extension : video_send_config_.rtp.extensions) | 243 for (const RtpExtension& extension : video_send_config_.rtp.extensions) |
| 244 video_config.rtp.extensions.push_back(extension); | 244 video_config.rtp.extensions.push_back(extension); |
| 245 video_config.renderer = &fake_renderer_; | 245 video_config.renderer = &fake_renderer_; |
| 246 for (size_t i = 0; i < video_send_config_.rtp.ssrcs.size(); ++i) { | 246 for (size_t i = 0; i < video_send_config_.rtp.ssrcs.size(); ++i) { |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 524 |
| 525 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 525 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
| 526 } | 526 } |
| 527 | 527 |
| 528 bool EndToEndTest::ShouldCreateReceivers() const { | 528 bool EndToEndTest::ShouldCreateReceivers() const { |
| 529 return true; | 529 return true; |
| 530 } | 530 } |
| 531 | 531 |
| 532 } // namespace test | 532 } // namespace test |
| 533 } // namespace webrtc | 533 } // namespace webrtc |
| OLD | NEW |