| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 public: | 83 public: |
| 84 WebRTCMockResourceContext() {} | 84 WebRTCMockResourceContext() {} |
| 85 virtual ~WebRTCMockResourceContext() {} | 85 virtual ~WebRTCMockResourceContext() {} |
| 86 virtual void EnsureInitialized() const OVERRIDE {} | 86 virtual void EnsureInitialized() const OVERRIDE {} |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 DISALLOW_COPY_AND_ASSIGN(WebRTCMockResourceContext); | 89 DISALLOW_COPY_AND_ASSIGN(WebRTCMockResourceContext); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 ACTION_P(QuitMessageLoop, loop_or_proxy) { | 92 ACTION_P(QuitMessageLoop, loop_or_proxy) { |
| 93 loop_or_proxy->PostTask(FROM_HERE, new MessageLoop::QuitTask()); | 93 loop_or_proxy->PostTask(FROM_HERE, MessageLoop::QuitClosure()); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // end namespace | 96 } // end namespace |
| 97 | 97 |
| 98 WebRTCAudioDeviceTest::WebRTCAudioDeviceTest() | 98 WebRTCAudioDeviceTest::WebRTCAudioDeviceTest() |
| 99 : render_thread_(NULL), event_(false, false), audio_util_callback_(NULL) { | 99 : render_thread_(NULL), event_(false, false), audio_util_callback_(NULL) { |
| 100 } | 100 } |
| 101 | 101 |
| 102 WebRTCAudioDeviceTest::~WebRTCAudioDeviceTest() {} | 102 WebRTCAudioDeviceTest::~WebRTCAudioDeviceTest() {} |
| 103 | 103 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 WebRTCTransportImpl::~WebRTCTransportImpl() {} | 284 WebRTCTransportImpl::~WebRTCTransportImpl() {} |
| 285 | 285 |
| 286 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { | 286 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { |
| 287 return network_->ReceivedRTPPacket(channel, data, len); | 287 return network_->ReceivedRTPPacket(channel, data, len); |
| 288 } | 288 } |
| 289 | 289 |
| 290 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, | 290 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, |
| 291 int len) { | 291 int len) { |
| 292 return network_->ReceivedRTCPPacket(channel, data, len); | 292 return network_->ReceivedRTCPPacket(channel, data, len); |
| 293 } | 293 } |
| OLD | NEW |