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

Side by Side Diff: webrtc/test/call_test.h

Issue 2961723004: Allow an external audio processing module to be used in WebRTC (Closed)
Patch Set: Moved creation of APMs from CreateVoiceEngines Created 3 years, 5 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
« no previous file with comments | « webrtc/sdk/android/src/jni/media_jni.cc ('k') | webrtc/test/call_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 #ifndef WEBRTC_TEST_CALL_TEST_H_ 10 #ifndef WEBRTC_TEST_CALL_TEST_H_
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 VoiceEngine* voice_engine; 139 VoiceEngine* voice_engine;
140 VoEBase* base; 140 VoEBase* base;
141 int channel_id; 141 int channel_id;
142 }; 142 };
143 143
144 void CreateVoiceEngines(); 144 void CreateVoiceEngines();
145 void DestroyVoiceEngines(); 145 void DestroyVoiceEngines();
146 146
147 VoiceEngineState voe_send_; 147 VoiceEngineState voe_send_;
148 VoiceEngineState voe_recv_; 148 VoiceEngineState voe_recv_;
149 rtc::scoped_refptr<AudioProcessing> apm_send_;
150 rtc::scoped_refptr<AudioProcessing> apm_recv_;
149 151
150 // The audio devices must outlive the voice engines. 152 // The audio devices must outlive the voice engines.
151 std::unique_ptr<test::FakeAudioDevice> fake_send_audio_device_; 153 std::unique_ptr<test::FakeAudioDevice> fake_send_audio_device_;
152 std::unique_ptr<test::FakeAudioDevice> fake_recv_audio_device_; 154 std::unique_ptr<test::FakeAudioDevice> fake_recv_audio_device_;
153 }; 155 };
154 156
155 class BaseTest : public RtpRtcpObserver { 157 class BaseTest : public RtpRtcpObserver {
156 public: 158 public:
157 BaseTest(); 159 BaseTest();
158 explicit BaseTest(unsigned int timeout_ms); 160 explicit BaseTest(unsigned int timeout_ms);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 EndToEndTest(); 222 EndToEndTest();
221 explicit EndToEndTest(unsigned int timeout_ms); 223 explicit EndToEndTest(unsigned int timeout_ms);
222 224
223 bool ShouldCreateReceivers() const override; 225 bool ShouldCreateReceivers() const override;
224 }; 226 };
225 227
226 } // namespace test 228 } // namespace test
227 } // namespace webrtc 229 } // namespace webrtc
228 230
229 #endif // WEBRTC_TEST_CALL_TEST_H_ 231 #endif // WEBRTC_TEST_CALL_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/jni/media_jni.cc ('k') | webrtc/test/call_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698