| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 72 call_config.event_log = &event_log_; |
| 72 if (start_bitrate_bps_ != 0) { | 73 if (start_bitrate_bps_ != 0) { |
| 73 call_config.bitrate_config.start_bitrate_bps = start_bitrate_bps_; | 74 call_config.bitrate_config.start_bitrate_bps = start_bitrate_bps_; |
| 74 } | 75 } |
| 75 call_config.bitrate_config.min_bitrate_bps = 10000; | 76 call_config.bitrate_config.min_bitrate_bps = 10000; |
| 76 return call_config; | 77 return call_config; |
| 77 } | 78 } |
| 78 | 79 |
| 79 void RampUpTester::OnVideoStreamsCreated( | 80 void RampUpTester::OnVideoStreamsCreated( |
| 80 VideoSendStream* send_stream, | 81 VideoSendStream* send_stream, |
| 81 const std::vector<VideoReceiveStream*>& receive_streams) { | 82 const std::vector<VideoReceiveStream*>& receive_streams) { |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // currently used instead. | 377 // currently used instead. |
| 377 int transmit_bitrate_bps = sender_call_->GetStats().send_bandwidth_bps; | 378 int transmit_bitrate_bps = sender_call_->GetStats().send_bandwidth_bps; |
| 378 EvolveTestState(transmit_bitrate_bps, false); | 379 EvolveTestState(transmit_bitrate_bps, false); |
| 379 } | 380 } |
| 380 | 381 |
| 381 return !event_.Wait(kPollIntervalMs); | 382 return !event_.Wait(kPollIntervalMs); |
| 382 } | 383 } |
| 383 | 384 |
| 384 Call::Config RampUpDownUpTester::GetReceiverCallConfig() { | 385 Call::Config RampUpDownUpTester::GetReceiverCallConfig() { |
| 385 Call::Config config; | 386 Call::Config config; |
| 387 config.event_log = &event_log_; |
| 386 config.bitrate_config.min_bitrate_bps = 10000; | 388 config.bitrate_config.min_bitrate_bps = 10000; |
| 387 return config; | 389 return config; |
| 388 } | 390 } |
| 389 | 391 |
| 390 std::string RampUpDownUpTester::GetModifierString() const { | 392 std::string RampUpDownUpTester::GetModifierString() const { |
| 391 std::string str("_"); | 393 std::string str("_"); |
| 392 if (num_video_streams_ > 0) { | 394 if (num_video_streams_ > 0) { |
| 393 std::ostringstream s; | 395 std::ostringstream s; |
| 394 s << num_video_streams_; | 396 s << num_video_streams_; |
| 395 str += s.str(); | 397 str += s.str(); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 true); | 622 true); |
| 621 RunBaseTest(&test); | 623 RunBaseTest(&test); |
| 622 } | 624 } |
| 623 | 625 |
| 624 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { | 626 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { |
| 625 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, | 627 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, |
| 626 RtpExtension::kTransportSequenceNumberUri, false, false); | 628 RtpExtension::kTransportSequenceNumberUri, false, false); |
| 627 RunBaseTest(&test); | 629 RunBaseTest(&test); |
| 628 } | 630 } |
| 629 } // namespace webrtc | 631 } // namespace webrtc |
| OLD | NEW |