| 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()
|
|
|
|
|