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

Unified Diff: content/renderer/p2p/p2p_transport_impl_unittest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/webrtc_audio_device_unittest.cc ('k') | content/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/p2p_transport_impl_unittest.cc
diff --git a/content/renderer/p2p/p2p_transport_impl_unittest.cc b/content/renderer/p2p/p2p_transport_impl_unittest.cc
index 6dabbc8da45df49f3e046e265f80c98742072ed1..6fcc2b01581674f633ff6a86533b9463d2cfdb71 100644
--- a/content/renderer/p2p/p2p_transport_impl_unittest.cc
+++ b/content/renderer/p2p/p2p_transport_impl_unittest.cc
@@ -84,7 +84,7 @@ class UdpChannelTester : public base::RefCountedThreadSafe<UdpChannelTester> {
protected:
void Done() {
done_ = true;
- message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
void DoStart() {
@@ -241,7 +241,7 @@ class TcpChannelTester : public base::RefCountedThreadSafe<TcpChannelTester> {
protected:
void Done() {
done_ = true;
- message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
void DoWrite() {
@@ -434,7 +434,7 @@ TEST_F(P2PTransportImplTest, SendDataUdp) {
scoped_refptr<UdpChannelTester> channel_tester = new UdpChannelTester(
&message_loop_, transport1_->GetChannel(), transport2_->GetChannel());
- message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(),
+ message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(),
TestTimeouts::action_max_timeout_ms());
channel_tester->Start();
@@ -479,7 +479,7 @@ TEST_F(P2PTransportImplTest, SendDataTcp) {
&TcpChannelTester::StartRead))
.RetiresOnSaturation();
- message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(),
+ message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(),
TestTimeouts::action_max_timeout_ms());
channel_tester->Init();
« no previous file with comments | « content/renderer/media/webrtc_audio_device_unittest.cc ('k') | content/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698