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

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

Issue 8872030: Removing MessageLoop::QuitTask() from content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix escaping Created 9 years 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/render_view_test.cc ('k') | no next file » | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « content/test/render_view_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698