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

Unified Diff: webrtc/test/call_test.cc

Issue 2717623003: Add the ability to read/write to WAV files in FakeAudioDevice (Closed)
Patch Set: Prevent nested CritScope to fix 'use of an invalid mutex' Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/test/call_test.cc
diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc
index 68d6857e29d7208d85a8af114227b5fb951b25f9..9ecfbf93e80a139727670cbb1ba532fdfbe7baa2 100644
--- a/webrtc/test/call_test.cc
+++ b/webrtc/test/call_test.cc
@@ -299,8 +299,10 @@ void CallTest::CreateFrameGeneratorCapturer(int framerate,
}
void CallTest::CreateFakeAudioDevices() {
- fake_send_audio_device_.reset(new FakeAudioDevice(1.f, 48000, 256));
- fake_recv_audio_device_.reset(new FakeAudioDevice(1.f, 48000, 256));
+ fake_send_audio_device_.reset(new FakeAudioDevice(
+ FakeAudioDevice::CreatePulsedNoiseCapturer(256, 48000), nullptr, 1.f));
+ fake_recv_audio_device_.reset(new FakeAudioDevice(
+ nullptr, FakeAudioDevice::CreateDiscarder(48000), 1.f));
}
void CallTest::CreateVideoStreams() {

Powered by Google App Engine
This is Rietveld 408576698