| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 30 matching lines...) Expand all Loading... |
| 41 AudioBweTest::CreateCapturer() { | 41 AudioBweTest::CreateCapturer() { |
| 42 return test::FakeAudioDevice::CreateWavFileReader(AudioInputFile()); | 42 return test::FakeAudioDevice::CreateWavFileReader(AudioInputFile()); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void AudioBweTest::OnFakeAudioDevicesCreated( | 45 void AudioBweTest::OnFakeAudioDevicesCreated( |
| 46 test::FakeAudioDevice* send_audio_device, | 46 test::FakeAudioDevice* send_audio_device, |
| 47 test::FakeAudioDevice* recv_audio_device) { | 47 test::FakeAudioDevice* recv_audio_device) { |
| 48 send_audio_device_ = send_audio_device; | 48 send_audio_device_ = send_audio_device; |
| 49 } | 49 } |
| 50 | 50 |
| 51 test::PacketTransport* AudioBweTest::CreateSendTransport(Call* sender_call) { | 51 test::PacketTransport* AudioBweTest::CreateSendTransport( |
| 52 SingleThreadedTaskQueueForTesting* task_queue, |
| 53 Call* sender_call) { |
| 52 return new test::PacketTransport( | 54 return new test::PacketTransport( |
| 53 sender_call, this, test::PacketTransport::kSender, | 55 task_queue, sender_call, this, test::PacketTransport::kSender, |
| 54 test::CallTest::payload_type_map_, GetNetworkPipeConfig()); | 56 test::CallTest::payload_type_map_, GetNetworkPipeConfig()); |
| 55 } | 57 } |
| 56 | 58 |
| 57 test::PacketTransport* AudioBweTest::CreateReceiveTransport() { | 59 test::PacketTransport* AudioBweTest::CreateReceiveTransport( |
| 60 SingleThreadedTaskQueueForTesting* task_queue) { |
| 58 return new test::PacketTransport( | 61 return new test::PacketTransport( |
| 59 nullptr, this, test::PacketTransport::kReceiver, | 62 task_queue, nullptr, this, test::PacketTransport::kReceiver, |
| 60 test::CallTest::payload_type_map_, GetNetworkPipeConfig()); | 63 test::CallTest::payload_type_map_, GetNetworkPipeConfig()); |
| 61 } | 64 } |
| 62 | 65 |
| 63 void AudioBweTest::PerformTest() { | 66 void AudioBweTest::PerformTest() { |
| 64 send_audio_device_->WaitForRecordingEnd(); | 67 send_audio_device_->WaitForRecordingEnd(); |
| 65 SleepMs(GetNetworkPipeConfig().queue_delay_ms + kExtraProcessTimeMs); | 68 SleepMs(GetNetworkPipeConfig().queue_delay_ms + kExtraProcessTimeMs); |
| 66 } | 69 } |
| 67 | 70 |
| 68 class StatsPollTask : public rtc::QueuedTask { | 71 class StatsPollTask : public rtc::QueuedTask { |
| 69 public: | 72 public: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 TEST_F(AudioBweIntegrationTest, DISABLED_NoBandwidthDropAfterDtx) { | 147 TEST_F(AudioBweIntegrationTest, DISABLED_NoBandwidthDropAfterDtx) { |
| 145 webrtc::test::ScopedFieldTrials override_field_trials( | 148 webrtc::test::ScopedFieldTrials override_field_trials( |
| 146 "WebRTC-Audio-SendSideBwe/Enabled/" | 149 "WebRTC-Audio-SendSideBwe/Enabled/" |
| 147 "WebRTC-SendSideBwe-WithOverhead/Enabled/"); | 150 "WebRTC-SendSideBwe-WithOverhead/Enabled/"); |
| 148 NoBandwidthDropAfterDtx test; | 151 NoBandwidthDropAfterDtx test; |
| 149 RunBaseTest(&test); | 152 RunBaseTest(&test); |
| 150 } | 153 } |
| 151 | 154 |
| 152 } // namespace test | 155 } // namespace test |
| 153 } // namespace webrtc | 156 } // namespace webrtc |
| OLD | NEW |