summaryrefslogtreecommitdiffstats
path: root/net/socket_stream/socket_stream_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket_stream/socket_stream_unittest.cc')
-rw-r--r--net/socket_stream/socket_stream_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/socket_stream/socket_stream_unittest.cc b/net/socket_stream/socket_stream_unittest.cc
index 25ce17b..832b0ab 100644
--- a/net/socket_stream/socket_stream_unittest.cc
+++ b/net/socket_stream/socket_stream_unittest.cc
@@ -240,8 +240,8 @@ TEST_F(SocketStreamTest, CloseFlushPendingWrite) {
MockHostResolver host_resolver;
- scoped_refptr<SocketStream> socket_stream =
- new SocketStream(GURL("ws://example.com/demo"), delegate.get());
+ scoped_refptr<SocketStream> socket_stream(
+ new SocketStream(GURL("ws://example.com/demo"), delegate.get()));
socket_stream->set_context(new TestURLRequestContext());
socket_stream->SetHostResolver(&host_resolver);
@@ -331,8 +331,8 @@ TEST_F(SocketStreamTest, BasicAuthProxy) {
NewCallback(delegate.get(),
&SocketStreamEventRecorder::DoRestartWithAuth));
- scoped_refptr<SocketStream> socket_stream =
- new SocketStream(GURL("ws://example.com/demo"), delegate.get());
+ scoped_refptr<SocketStream> socket_stream(
+ new SocketStream(GURL("ws://example.com/demo"), delegate.get()));
socket_stream->set_context(new TestURLRequestContext("myproxy:70"));
MockHostResolver host_resolver;