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

Unified Diff: net/socket/tcp_server_socket_unittest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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/socket/ssl_server_socket_nss.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_server_socket_unittest.cc
diff --git a/net/socket/tcp_server_socket_unittest.cc b/net/socket/tcp_server_socket_unittest.cc
index 62f3f37c29ee7f24e51693470c1f0be9a5256271..9f8a785cfc8e7be8e06d319c8f5180be76443055 100644
--- a/net/socket/tcp_server_socket_unittest.cc
+++ b/net/socket/tcp_server_socket_unittest.cc
@@ -220,7 +220,7 @@ TEST_F(TCPServerSocketTest, AcceptIO) {
memmove(write_buffer->data(), message.data(), message.size());
TestCompletionCallback write_callback;
- int write_result = accepted_socket->Write(write_buffer,
+ int write_result = accepted_socket->Write(write_buffer.get(),
write_buffer->size(),
write_callback.callback());
write_result = write_callback.GetResult(write_result);
@@ -234,7 +234,7 @@ TEST_F(TCPServerSocketTest, AcceptIO) {
scoped_refptr<net::IOBufferWithSize> read_buffer(
new net::IOBufferWithSize(message.size() - bytes_read));
TestCompletionCallback read_callback;
- int read_result = connecting_socket.Read(read_buffer,
+ int read_result = connecting_socket.Read(read_buffer.get(),
read_buffer->size(),
read_callback.callback());
read_result = read_callback.GetResult(read_result);
« no previous file with comments | « net/socket/ssl_server_socket_nss.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698