diff options
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/glue/pseudotcp_adapter_unittest.cc | 4 | ||||
-rw-r--r-- | jingle/glue/thread_wrapper_unittest.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/jingle/glue/pseudotcp_adapter_unittest.cc b/jingle/glue/pseudotcp_adapter_unittest.cc index 7ee217a..84d3b56 100644 --- a/jingle/glue/pseudotcp_adapter_unittest.cc +++ b/jingle/glue/pseudotcp_adapter_unittest.cc @@ -204,7 +204,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 DoStart() { @@ -386,7 +386,7 @@ class DeleteOnConnected { : message_loop_(message_loop), adapter_(adapter) {} void OnConnected(int error) { adapter_->reset(); - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } MessageLoop* message_loop_; scoped_ptr<PseudoTcpAdapter>* adapter_; diff --git a/jingle/glue/thread_wrapper_unittest.cc b/jingle/glue/thread_wrapper_unittest.cc index 007bc9f..2fef6d3 100644 --- a/jingle/glue/thread_wrapper_unittest.cc +++ b/jingle/glue/thread_wrapper_unittest.cc @@ -147,7 +147,7 @@ TEST_F(ThreadWrapperTest, PostDelayed) { MatchMessage(&handler2_, kTestMessage1, data4))) .WillOnce(DeleteMessageData()); - message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(), + message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kMaxTestDelay); message_loop_.Run(); } @@ -197,7 +197,7 @@ TEST_F(ThreadWrapperTest, ClearDelayed) { MatchMessage(&handler2_, kTestMessage1, null_data))) .WillOnce(DeleteMessageData()); - message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(), + message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kMaxTestDelay); message_loop_.Run(); } |