Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: webrtc/audio/test/low_bandwidth_audio_test.cc

Issue 2998923002: Use SingleThreadedTaskQueue in DirectTransport (Closed)
Patch Set: Appease win_msvc_rel. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 test::FakeAudioDevice* send_audio_device, 79 test::FakeAudioDevice* send_audio_device,
80 test::FakeAudioDevice* recv_audio_device) { 80 test::FakeAudioDevice* recv_audio_device) {
81 send_audio_device_ = send_audio_device; 81 send_audio_device_ = send_audio_device;
82 } 82 }
83 83
84 FakeNetworkPipe::Config AudioQualityTest::GetNetworkPipeConfig() { 84 FakeNetworkPipe::Config AudioQualityTest::GetNetworkPipeConfig() {
85 return FakeNetworkPipe::Config(); 85 return FakeNetworkPipe::Config();
86 } 86 }
87 87
88 test::PacketTransport* AudioQualityTest::CreateSendTransport( 88 test::PacketTransport* AudioQualityTest::CreateSendTransport(
89 SingleThreadedTaskQueueForTesting* task_queue,
89 Call* sender_call) { 90 Call* sender_call) {
90 return new test::PacketTransport( 91 return new test::PacketTransport(
91 sender_call, this, test::PacketTransport::kSender, 92 task_queue, sender_call, this, test::PacketTransport::kSender,
92 test::CallTest::payload_type_map_, GetNetworkPipeConfig()); 93 test::CallTest::payload_type_map_, GetNetworkPipeConfig());
93 } 94 }
94 95
95 test::PacketTransport* AudioQualityTest::CreateReceiveTransport() { 96 test::PacketTransport* AudioQualityTest::CreateReceiveTransport(
97 SingleThreadedTaskQueueForTesting* task_queue) {
96 return new test::PacketTransport( 98 return new test::PacketTransport(
97 nullptr, this, test::PacketTransport::kReceiver, 99 task_queue, nullptr, this, test::PacketTransport::kReceiver,
98 test::CallTest::payload_type_map_, GetNetworkPipeConfig()); 100 test::CallTest::payload_type_map_, GetNetworkPipeConfig());
99 } 101 }
100 102
101 void AudioQualityTest::ModifyAudioConfigs( 103 void AudioQualityTest::ModifyAudioConfigs(
102 AudioSendStream::Config* send_config, 104 AudioSendStream::Config* send_config,
103 std::vector<AudioReceiveStream::Config>* receive_configs) { 105 std::vector<AudioReceiveStream::Config>* receive_configs) {
104 // Large bitrate by default. 106 // Large bitrate by default.
105 const webrtc::SdpAudioFormat kDefaultFormat("OPUS", 48000, 2, 107 const webrtc::SdpAudioFormat kDefaultFormat("OPUS", 48000, 2,
106 {{"stereo", "1"}}); 108 {{"stereo", "1"}});
107 send_config->send_codec_spec = 109 send_config->send_codec_spec =
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 165 }
164 }; 166 };
165 167
166 TEST_F(LowBandwidthAudioTest, Mobile2GNetwork) { 168 TEST_F(LowBandwidthAudioTest, Mobile2GNetwork) {
167 Mobile2GNetworkTest test; 169 Mobile2GNetworkTest test;
168 RunBaseTest(&test); 170 RunBaseTest(&test);
169 } 171 }
170 172
171 } // namespace test 173 } // namespace test
172 } // namespace webrtc 174 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698