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

Side by Side Diff: content/test/webrtc_audio_device_test.cc

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/webrtc_audio_device_test.h ('k') | content/worker/websharedworker_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/test/webrtc_audio_device_test.h ('k') | content/worker/websharedworker_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698