Separate test/fake_audio_device on API and implementation. Step 2.
Switch WebRTC internal usage of FakeAudioDevice on TestAudioDeviceModule.
Bug: webrtc:8946
Change-Id: I96b8b5d3b475d2197662e9007f836bd71f8ed04d
Reviewed-on: https://webrtc-review.googlesource.com/60521
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22388}
diff --git a/video/video_quality_test.cc b/video/video_quality_test.cc
index 01729cd..bc46f13 100644
--- a/video/video_quality_test.cc
+++ b/video/video_quality_test.cc
@@ -2104,11 +2104,10 @@
Call::Config call_config(event_log_.get());
call_config.bitrate_config = params_.call.call_bitrate_config;
- rtc::scoped_refptr<test::FakeAudioDevice> fake_audio_device =
- new rtc::RefCountedObject<test::FakeAudioDevice>(
- test::FakeAudioDevice::CreatePulsedNoiseCapturer(32000, 48000),
- test::FakeAudioDevice::CreateDiscardRenderer(48000),
- 1.f);
+ rtc::scoped_refptr<TestAudioDeviceModule> fake_audio_device =
+ TestAudioDeviceModule::CreateTestAudioDeviceModule(
+ TestAudioDeviceModule::CreatePulsedNoiseCapturer(32000, 48000),
+ TestAudioDeviceModule::CreateDiscardRenderer(48000), 1.f);
if (params_.audio.enabled) {
AudioState::Config audio_state_config;