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

Unified Diff: content/test/webrtc_audio_device_test.cc

Issue 12049070: Avoids irregular OnMoreData callbacks on Windows using Core Audio (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleaned up Created 7 years, 11 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: content/test/webrtc_audio_device_test.cc
diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc
index b31d4bb50f94aaa12b6b922c91ccaf0ffb32c434..23324895908320ec7caab8667f5abe23f03240e5 100644
--- a/content/test/webrtc_audio_device_test.cc
+++ b/content/test/webrtc_audio_device_test.cc
@@ -282,6 +282,12 @@ void WebRTCAudioDeviceTest::OnGetHardwareInputChannelLayout(
media::AudioManagerBase::kDefaultDeviceId);
}
+void WebRTCAudioDeviceTest::OnGetHardwareBufferSize(uint32* buffer_size) {
+ EXPECT_TRUE(audio_util_callback_);
+ *buffer_size = audio_util_callback_ ?
+ audio_util_callback_->GetAudioOutputBufferSize() : 0;
+}
+
// IPC::Listener implementation.
bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) {
if (render_thread_) {
@@ -316,6 +322,8 @@ bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) {
OnGetHardwareInputSampleRate)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputChannelLayout,
OnGetHardwareInputChannelLayout)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareBufferSize,
+ OnGetHardwareBufferSize)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()

Powered by Google App Engine
This is Rietveld 408576698