OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/test/webrtc_audio_device_test.h" | 5 #include "content/test/webrtc_audio_device_test.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 259 } |
260 | 260 |
261 void WebRTCAudioDeviceTest::OnGetHardwareInputChannelLayout( | 261 void WebRTCAudioDeviceTest::OnGetHardwareInputChannelLayout( |
262 ChannelLayout* layout) { | 262 ChannelLayout* layout) { |
263 EXPECT_TRUE(audio_util_callback_); | 263 EXPECT_TRUE(audio_util_callback_); |
264 *layout = audio_util_callback_ ? | 264 *layout = audio_util_callback_ ? |
265 audio_util_callback_->GetAudioInputHardwareChannelLayout( | 265 audio_util_callback_->GetAudioInputHardwareChannelLayout( |
266 media::AudioManagerBase::kDefaultDeviceId) : CHANNEL_LAYOUT_NONE; | 266 media::AudioManagerBase::kDefaultDeviceId) : CHANNEL_LAYOUT_NONE; |
267 } | 267 } |
268 | 268 |
269 // IPC::Channel::Listener implementation. | 269 // IPC::Listener implementation. |
270 bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) { | 270 bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) { |
271 if (render_thread_) { | 271 if (render_thread_) { |
272 IPC::ChannelProxy::MessageFilter* filter = | 272 IPC::ChannelProxy::MessageFilter* filter = |
273 render_thread_->audio_input_message_filter(); | 273 render_thread_->audio_input_message_filter(); |
274 if (filter->OnMessageReceived(message)) | 274 if (filter->OnMessageReceived(message)) |
275 return true; | 275 return true; |
276 | 276 |
277 filter = render_thread_->audio_message_filter(); | 277 filter = render_thread_->audio_message_filter(); |
278 if (filter->OnMessageReceived(message)) | 278 if (filter->OnMessageReceived(message)) |
279 return true; | 279 return true; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 WebRTCTransportImpl::~WebRTCTransportImpl() {} | 354 WebRTCTransportImpl::~WebRTCTransportImpl() {} |
355 | 355 |
356 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { | 356 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { |
357 return network_->ReceivedRTPPacket(channel, data, len); | 357 return network_->ReceivedRTPPacket(channel, data, len); |
358 } | 358 } |
359 | 359 |
360 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, | 360 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, |
361 int len) { | 361 int len) { |
362 return network_->ReceivedRTCPPacket(channel, data, len); | 362 return network_->ReceivedRTCPPacket(channel, data, len); |
363 } | 363 } |
OLD | NEW |