| 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 #include "webrtc/test/call_test.h" | 10 #include "webrtc/test/call_test.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 send_config_.rtp.ssrcs.push_back(kSendSsrcs[i]); | 101 send_config_.rtp.ssrcs.push_back(kSendSsrcs[i]); |
| 102 send_config_.rtp.extensions.push_back( | 102 send_config_.rtp.extensions.push_back( |
| 103 RtpExtension(RtpExtension::kVideoRotation, kVideoRotationRtpExtensionId)); | 103 RtpExtension(RtpExtension::kVideoRotation, kVideoRotationRtpExtensionId)); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void CallTest::CreateMatchingReceiveConfigs() { | 106 void CallTest::CreateMatchingReceiveConfigs() { |
| 107 assert(!send_config_.rtp.ssrcs.empty()); | 107 assert(!send_config_.rtp.ssrcs.empty()); |
| 108 assert(receive_configs_.empty()); | 108 assert(receive_configs_.empty()); |
| 109 assert(allocated_decoders_.empty()); | 109 assert(allocated_decoders_.empty()); |
| 110 VideoReceiveStream::Config config; | 110 VideoReceiveStream::Config config; |
| 111 config.rtp.remb = true; |
| 111 config.rtp.local_ssrc = kReceiverLocalSsrc; | 112 config.rtp.local_ssrc = kReceiverLocalSsrc; |
| 112 for (const RtpExtension& extension : send_config_.rtp.extensions) | 113 for (const RtpExtension& extension : send_config_.rtp.extensions) |
| 113 config.rtp.extensions.push_back(extension); | 114 config.rtp.extensions.push_back(extension); |
| 114 for (size_t i = 0; i < send_config_.rtp.ssrcs.size(); ++i) { | 115 for (size_t i = 0; i < send_config_.rtp.ssrcs.size(); ++i) { |
| 115 VideoReceiveStream::Decoder decoder = | 116 VideoReceiveStream::Decoder decoder = |
| 116 test::CreateMatchingDecoder(send_config_.encoder_settings); | 117 test::CreateMatchingDecoder(send_config_.encoder_settings); |
| 117 allocated_decoders_.push_back(decoder.decoder); | 118 allocated_decoders_.push_back(decoder.decoder); |
| 118 config.decoders.clear(); | 119 config.decoders.clear(); |
| 119 config.decoders.push_back(decoder); | 120 config.decoders.push_back(decoder); |
| 120 config.rtp.remote_ssrc = send_config_.rtp.ssrcs[i]; | 121 config.rtp.remote_ssrc = send_config_.rtp.ssrcs[i]; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 const FakeNetworkPipe::Config& config) | 230 const FakeNetworkPipe::Config& config) |
| 230 : BaseTest(timeout_ms, config) { | 231 : BaseTest(timeout_ms, config) { |
| 231 } | 232 } |
| 232 | 233 |
| 233 bool EndToEndTest::ShouldCreateReceivers() const { | 234 bool EndToEndTest::ShouldCreateReceivers() const { |
| 234 return true; | 235 return true; |
| 235 } | 236 } |
| 236 | 237 |
| 237 } // namespace test | 238 } // namespace test |
| 238 } // namespace webrtc | 239 } // namespace webrtc |
| OLD | NEW |