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

Unified Diff: net/base/listen_socket_unittest.cc

Issue 2868036: Brushed up listen socket: (Closed)
Patch Set: Lint. Created 10 years, 5 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/listen_socket_unittest.h ('k') | net/base/telnet_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/listen_socket_unittest.cc
diff --git a/net/base/listen_socket_unittest.cc b/net/base/listen_socket_unittest.cc
index ed2b566ea2b2c341d80e5734697bc67477058f02..f33ac3c8ae4f0be280aeae3b240e0b497bc62396 100644
--- a/net/base/listen_socket_unittest.cc
+++ b/net/base/listen_socket_unittest.cc
@@ -212,8 +212,10 @@ void ListenSocketTester::DidAccept(ListenSocket *server,
}
void ListenSocketTester::DidRead(ListenSocket *connection,
- const std::string& data) {
- ReportAction(ListenSocketTestAction(ACTION_READ, data));
+ const char* data,
+ int len) {
+ std::string str(data, len);
+ ReportAction(ListenSocketTestAction(ACTION_READ, str));
}
void ListenSocketTester::DidClose(ListenSocket *sock) {
« no previous file with comments | « net/base/listen_socket_unittest.h ('k') | net/base/telnet_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698