OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <functional> | 10 #include <functional> |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Encoders will be set separately per stream. | 144 // Encoders will be set separately per stream. |
145 send_config_.encoder_settings.encoder = nullptr; | 145 send_config_.encoder_settings.encoder = nullptr; |
146 send_config_.encoder_settings.payload_name = "FAKE"; | 146 send_config_.encoder_settings.payload_name = "FAKE"; |
147 send_config_.encoder_settings.payload_type = kFakeSendPayloadType; | 147 send_config_.encoder_settings.payload_type = kFakeSendPayloadType; |
148 encoder_config_.streams = test::CreateVideoStreams(1); | 148 encoder_config_.streams = test::CreateVideoStreams(1); |
149 | 149 |
150 receive_config_ = VideoReceiveStream::Config(); | 150 receive_config_ = VideoReceiveStream::Config(); |
151 // receive_config_.decoders will be set by every stream separately. | 151 // receive_config_.decoders will be set by every stream separately. |
152 receive_config_.rtp.remote_ssrc = send_config_.rtp.ssrcs[0]; | 152 receive_config_.rtp.remote_ssrc = send_config_.rtp.ssrcs[0]; |
153 receive_config_.rtp.local_ssrc = kReceiverLocalSsrc; | 153 receive_config_.rtp.local_ssrc = kReceiverLocalSsrc; |
| 154 receive_config_.rtp.remb = true; |
154 receive_config_.rtp.extensions.push_back( | 155 receive_config_.rtp.extensions.push_back( |
155 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId)); | 156 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId)); |
156 receive_config_.rtp.extensions.push_back( | 157 receive_config_.rtp.extensions.push_back( |
157 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId)); | 158 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId)); |
158 } | 159 } |
159 | 160 |
160 virtual void TearDown() { | 161 virtual void TearDown() { |
161 std::for_each(streams_.begin(), streams_.end(), | 162 std::for_each(streams_.begin(), streams_.end(), |
162 std::mem_fun(&Stream::StopSending)); | 163 std::mem_fun(&Stream::StopSending)); |
163 | 164 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 receiver_trace_.PushExpectedLogLine( | 370 receiver_trace_.PushExpectedLogLine( |
370 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); | 371 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); |
371 receiver_trace_.PushExpectedLogLine( | 372 receiver_trace_.PushExpectedLogLine( |
372 "RemoteBitrateEstimatorFactory: Instantiating."); | 373 "RemoteBitrateEstimatorFactory: Instantiating."); |
373 streams_.push_back(new Stream(this, false)); | 374 streams_.push_back(new Stream(this, false)); |
374 streams_[0]->StopSending(); | 375 streams_[0]->StopSending(); |
375 streams_[1]->StopSending(); | 376 streams_[1]->StopSending(); |
376 EXPECT_EQ(kEventSignaled, receiver_trace_.Wait()); | 377 EXPECT_EQ(kEventSignaled, receiver_trace_.Wait()); |
377 } | 378 } |
378 } // namespace webrtc | 379 } // namespace webrtc |
OLD | NEW |