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

Unified Diff: content/renderer/p2p/p2p_transport_impl_unittest.cc

Issue 8554001: base::Bind: Convert content/renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fix. Created 9 years, 1 month 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/p2p/ipc_network_manager.cc ('k') | content/renderer/p2p/socket_client.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 00798de8ad7b97b4cc71231a7055ec0924b565fa..6dabbc8da45df49f3e046e265f80c98742072ed1 100644
--- a/content/renderer/p2p/p2p_transport_impl_unittest.cc
+++ b/content/renderer/p2p/p2p_transport_impl_unittest.cc
@@ -4,6 +4,7 @@
#include "content/renderer/p2p/p2p_transport_impl.h"
+#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop.h"
@@ -65,7 +66,7 @@ class UdpChannelTester : public base::RefCountedThreadSafe<UdpChannelTester> {
void Start() {
message_loop_->PostTask(
- FROM_HERE, NewRunnableMethod(this, &UdpChannelTester::DoStart));
+ FROM_HERE, base::Bind(&UdpChannelTester::DoStart, this));
}
void CheckResults() {
@@ -120,7 +121,7 @@ class UdpChannelTester : public base::RefCountedThreadSafe<UdpChannelTester> {
EXPECT_EQ(kMessageSize, result);
packets_sent_++;
message_loop_->PostDelayedTask(
- FROM_HERE, NewRunnableMethod(this, &UdpChannelTester::DoWrite),
+ FROM_HERE, base::Bind(&UdpChannelTester::DoWrite, this),
kUdpWriteDelayMs);
}
}
@@ -217,12 +218,12 @@ class TcpChannelTester : public base::RefCountedThreadSafe<TcpChannelTester> {
void StartRead() {
message_loop_->PostTask(
- FROM_HERE, NewRunnableMethod(this, &TcpChannelTester::DoRead));
+ FROM_HERE, base::Bind(&TcpChannelTester::DoRead, this));
}
void StartWrite() {
message_loop_->PostTask(
- FROM_HERE, NewRunnableMethod(this, &TcpChannelTester::DoWrite));
+ FROM_HERE, base::Bind(&TcpChannelTester::DoWrite, this));
}
void CheckResults() {
@@ -265,7 +266,7 @@ class TcpChannelTester : public base::RefCountedThreadSafe<TcpChannelTester> {
} else if (result > 0) {
send_buffer_->DidConsume(result);
message_loop_->PostDelayedTask(
- FROM_HERE, NewRunnableMethod(this, &TcpChannelTester::DoWrite),
+ FROM_HERE, base::Bind(&TcpChannelTester::DoWrite, this),
kTcpWriteDelayMs);
}
}
« no previous file with comments | « content/renderer/p2p/ipc_network_manager.cc ('k') | content/renderer/p2p/socket_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698