| 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 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 for (size_t i = 0; i < video_ssrcs_.size(); ++i) | 61 for (size_t i = 0; i < video_ssrcs_.size(); ++i) |
| 62 rtx_ssrc_map_[video_rtx_ssrcs_[i]] = video_ssrcs_[i]; | 62 rtx_ssrc_map_[video_rtx_ssrcs_[i]] = video_ssrcs_[i]; |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 RampUpTester::~RampUpTester() { | 66 RampUpTester::~RampUpTester() { |
| 67 event_.Set(); | 67 event_.Set(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 Call::Config RampUpTester::GetSenderCallConfig() { | 70 Call::Config RampUpTester::GetSenderCallConfig() { |
| 71 Call::Config call_config; | 71 Call::Config call_config(&event_log_); |
| 72 if (start_bitrate_bps_ != 0) { | 72 if (start_bitrate_bps_ != 0) { |
| 73 call_config.bitrate_config.start_bitrate_bps = start_bitrate_bps_; | 73 call_config.bitrate_config.start_bitrate_bps = start_bitrate_bps_; |
| 74 } | 74 } |
| 75 call_config.bitrate_config.min_bitrate_bps = 10000; | 75 call_config.bitrate_config.min_bitrate_bps = 10000; |
| 76 return call_config; | 76 return call_config; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void RampUpTester::OnVideoStreamsCreated( | 79 void RampUpTester::OnVideoStreamsCreated( |
| 80 VideoSendStream* send_stream, | 80 VideoSendStream* send_stream, |
| 81 const std::vector<VideoReceiveStream*>& receive_streams) { | 81 const std::vector<VideoReceiveStream*>& receive_streams) { |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 // An audio send stream doesn't have bitrate stats, so the call send BW is | 375 // An audio send stream doesn't have bitrate stats, so the call send BW is |
| 376 // currently used instead. | 376 // currently used instead. |
| 377 int transmit_bitrate_bps = sender_call_->GetStats().send_bandwidth_bps; | 377 int transmit_bitrate_bps = sender_call_->GetStats().send_bandwidth_bps; |
| 378 EvolveTestState(transmit_bitrate_bps, false); | 378 EvolveTestState(transmit_bitrate_bps, false); |
| 379 } | 379 } |
| 380 | 380 |
| 381 return !event_.Wait(kPollIntervalMs); | 381 return !event_.Wait(kPollIntervalMs); |
| 382 } | 382 } |
| 383 | 383 |
| 384 Call::Config RampUpDownUpTester::GetReceiverCallConfig() { | 384 Call::Config RampUpDownUpTester::GetReceiverCallConfig() { |
| 385 Call::Config config; | 385 Call::Config config(&event_log_); |
| 386 config.bitrate_config.min_bitrate_bps = 10000; | 386 config.bitrate_config.min_bitrate_bps = 10000; |
| 387 return config; | 387 return config; |
| 388 } | 388 } |
| 389 | 389 |
| 390 std::string RampUpDownUpTester::GetModifierString() const { | 390 std::string RampUpDownUpTester::GetModifierString() const { |
| 391 std::string str("_"); | 391 std::string str("_"); |
| 392 if (num_video_streams_ > 0) { | 392 if (num_video_streams_ > 0) { |
| 393 std::ostringstream s; | 393 std::ostringstream s; |
| 394 s << num_video_streams_; | 394 s << num_video_streams_; |
| 395 str += s.str(); | 395 str += s.str(); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 true); | 620 true); |
| 621 RunBaseTest(&test); | 621 RunBaseTest(&test); |
| 622 } | 622 } |
| 623 | 623 |
| 624 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { | 624 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { |
| 625 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, | 625 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, |
| 626 RtpExtension::kTransportSequenceNumberUri, false, false); | 626 RtpExtension::kTransportSequenceNumberUri, false, false); |
| 627 RunBaseTest(&test); | 627 RunBaseTest(&test); |
| 628 } | 628 } |
| 629 } // namespace webrtc | 629 } // namespace webrtc |
| OLD | NEW |