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

Unified Diff: net/base/tcp_listen_socket_unittest.cc

Issue 10161005: Add DefaultListenSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build on Windows Created 8 years, 7 months 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 | « net/base/tcp_listen_socket_unittest.h ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/tcp_listen_socket_unittest.cc
diff --git a/net/base/tcp_listen_socket_unittest.cc b/net/base/tcp_listen_socket_unittest.cc
index 423691b19391f771c8a7e87d2e1cc689ac582c53..61b259c3ea646e681e51fec50bccc769f19f0022 100644
--- a/net/base/tcp_listen_socket_unittest.cc
+++ b/net/base/tcp_listen_socket_unittest.cc
@@ -222,27 +222,27 @@ bool TCPListenSocketTester::Send(SOCKET sock, const std::string& str) {
return true;
}
-void TCPListenSocketTester::DidAccept(ListenSocket *server,
- ListenSocket *connection) {
+void TCPListenSocketTester::DidAccept(StreamListenSocket* server,
+ StreamListenSocket* connection) {
connection_ = connection;
connection_->AddRef();
ReportAction(TCPListenSocketTestAction(ACTION_ACCEPT));
}
-void TCPListenSocketTester::DidRead(ListenSocket *connection,
+void TCPListenSocketTester::DidRead(StreamListenSocket* connection,
const char* data,
int len) {
std::string str(data, len);
ReportAction(TCPListenSocketTestAction(ACTION_READ, str));
}
-void TCPListenSocketTester::DidClose(ListenSocket *sock) {
+void TCPListenSocketTester::DidClose(StreamListenSocket* sock) {
ReportAction(TCPListenSocketTestAction(ACTION_CLOSE));
}
TCPListenSocketTester::~TCPListenSocketTester() {}
-TCPListenSocket* TCPListenSocketTester::DoListen() {
+scoped_refptr<TCPListenSocket> TCPListenSocketTester::DoListen() {
return TCPListenSocket::CreateAndListen(kLoopback, kTestPort, this);
}
« no previous file with comments | « net/base/tcp_listen_socket_unittest.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698