| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 FakeNetworkPipe::Config AudioQualityTest::GetNetworkPipeConfig() { | 75 FakeNetworkPipe::Config AudioQualityTest::GetNetworkPipeConfig() { |
| 76 return FakeNetworkPipe::Config(); | 76 return FakeNetworkPipe::Config(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 test::PacketTransport* AudioQualityTest::CreateSendTransport( | 79 test::PacketTransport* AudioQualityTest::CreateSendTransport( |
| 80 Call* sender_call) { | 80 Call* sender_call) { |
| 81 return new test::PacketTransport( | 81 return new test::PacketTransport( |
| 82 sender_call, this, test::PacketTransport::kSender, | 82 sender_call, this, test::PacketTransport::kSender, |
| 83 MediaType::AUDIO, |
| 83 GetNetworkPipeConfig()); | 84 GetNetworkPipeConfig()); |
| 84 } | 85 } |
| 85 | 86 |
| 86 test::PacketTransport* AudioQualityTest::CreateReceiveTransport() { | 87 test::PacketTransport* AudioQualityTest::CreateReceiveTransport() { |
| 87 return new test::PacketTransport(nullptr, this, | 88 return new test::PacketTransport(nullptr, this, |
| 88 test::PacketTransport::kReceiver, GetNetworkPipeConfig()); | 89 test::PacketTransport::kReceiver, MediaType::AUDIO, |
| 90 GetNetworkPipeConfig()); |
| 89 } | 91 } |
| 90 | 92 |
| 91 void AudioQualityTest::ModifyAudioConfigs( | 93 void AudioQualityTest::ModifyAudioConfigs( |
| 92 AudioSendStream::Config* send_config, | 94 AudioSendStream::Config* send_config, |
| 93 std::vector<AudioReceiveStream::Config>* receive_configs) { | 95 std::vector<AudioReceiveStream::Config>* receive_configs) { |
| 94 send_config->send_codec_spec.codec_inst = kDefaultCodec; | 96 send_config->send_codec_spec.codec_inst = kDefaultCodec; |
| 95 } | 97 } |
| 96 | 98 |
| 97 void AudioQualityTest::PerformTest() { | 99 void AudioQualityTest::PerformTest() { |
| 98 // Wait until the input audio file is done... | 100 // Wait until the input audio file is done... |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 144 } |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 TEST_F(LowBandwidthAudioTest, Mobile2GNetwork) { | 147 TEST_F(LowBandwidthAudioTest, Mobile2GNetwork) { |
| 146 Mobile2GNetworkTest test; | 148 Mobile2GNetworkTest test; |
| 147 RunBaseTest(&test); | 149 RunBaseTest(&test); |
| 148 } | 150 } |
| 149 | 151 |
| 150 } // namespace test | 152 } // namespace test |
| 151 } // namespace webrtc | 153 } // namespace webrtc |
| OLD | NEW |