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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 call_config.bitrate_config.min_bitrate_bps = 10000; | 83 call_config.bitrate_config.min_bitrate_bps = 10000; |
84 return call_config; | 84 return call_config; |
85 } | 85 } |
86 | 86 |
87 void RampUpTester::OnVideoStreamsCreated( | 87 void RampUpTester::OnVideoStreamsCreated( |
88 VideoSendStream* send_stream, | 88 VideoSendStream* send_stream, |
89 const std::vector<VideoReceiveStream*>& receive_streams) { | 89 const std::vector<VideoReceiveStream*>& receive_streams) { |
90 send_stream_ = send_stream; | 90 send_stream_ = send_stream; |
91 } | 91 } |
92 | 92 |
93 test::PacketTransport* RampUpTester::CreateSendTransport(Call* sender_call) { | 93 test::PacketTransport* RampUpTester::CreateSendTransport( |
| 94 test::SingleThreadedTaskQueueForTesting* task_queue, |
| 95 Call* sender_call) { |
94 send_transport_ = new test::PacketTransport( | 96 send_transport_ = new test::PacketTransport( |
95 sender_call, this, test::PacketTransport::kSender, | 97 task_queue, sender_call, this, test::PacketTransport::kSender, |
96 test::CallTest::payload_type_map_, forward_transport_config_); | 98 test::CallTest::payload_type_map_, forward_transport_config_); |
97 return send_transport_; | 99 return send_transport_; |
98 } | 100 } |
99 | 101 |
100 size_t RampUpTester::GetNumVideoStreams() const { | 102 size_t RampUpTester::GetNumVideoStreams() const { |
101 return num_video_streams_; | 103 return num_video_streams_; |
102 } | 104 } |
103 | 105 |
104 size_t RampUpTester::GetNumAudioStreams() const { | 106 size_t RampUpTester::GetNumAudioStreams() const { |
105 return num_audio_streams_; | 107 return num_audio_streams_; |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 RunBaseTest(&test); | 643 RunBaseTest(&test); |
642 } | 644 } |
643 | 645 |
644 TEST_F(RampUpTest, AudioTransportSequenceNumber) { | 646 TEST_F(RampUpTest, AudioTransportSequenceNumber) { |
645 RampUpTester test(0, 1, 0, 300000, 10000, | 647 RampUpTester test(0, 1, 0, 300000, 10000, |
646 RtpExtension::kTransportSequenceNumberUri, false, false, | 648 RtpExtension::kTransportSequenceNumberUri, false, false, |
647 false); | 649 false); |
648 RunBaseTest(&test); | 650 RunBaseTest(&test); |
649 } | 651 } |
650 } // namespace webrtc | 652 } // namespace webrtc |
OLD | NEW |