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

Unified Diff: content/test/webrtc_audio_device_test.cc

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 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: 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 08f571789e7ffe73777139816345e1be8a2e1ea5..b9a8f348559e2cca825ed1aadd1135742af45bdb 100644
--- a/content/test/webrtc_audio_device_test.cc
+++ b/content/test/webrtc_audio_device_test.cc
@@ -223,11 +223,12 @@ void WebRTCAudioDeviceTest::OnGetHardwareInputSampleRate(double* sample_rate) {
AudioManagerBase::kDefaultDeviceId) : 0.0;
}
-void WebRTCAudioDeviceTest::OnGetHardwareInputChannelCount(uint32* channels) {
+void WebRTCAudioDeviceTest::OnGetHardwareInputChannelLayout(
+ ChannelLayout* layout) {
EXPECT_TRUE(audio_util_callback_);
- *channels = audio_util_callback_ ?
- audio_util_callback_->GetAudioInputHardwareChannelCount(
- AudioManagerBase::kDefaultDeviceId) : 0;
+ *layout = audio_util_callback_ ?
+ audio_util_callback_->GetAudioInputHardwareChannelLayout(
+ AudioManagerBase::kDefaultDeviceId) : CHANNEL_LAYOUT_NONE;
}
// IPC::Channel::Listener implementation.
@@ -262,8 +263,8 @@ bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) {
OnGetHardwareSampleRate)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputSampleRate,
OnGetHardwareInputSampleRate)
- IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputChannelCount,
- OnGetHardwareInputChannelCount)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputChannelLayout,
+ OnGetHardwareInputChannelLayout)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()

Powered by Google App Engine
This is Rietveld 408576698