Index: net/spdy/spdy_http_stream_unittest.cc |
diff --git a/net/spdy/spdy_http_stream_unittest.cc b/net/spdy/spdy_http_stream_unittest.cc |
index e2c7f8e75cebc343e724ca975fd3b96bd38bee9c..89e1461ca5005728b6bfdf84c43888e5232c606a 100644 |
--- a/net/spdy/spdy_http_stream_unittest.cc |
+++ b/net/spdy/spdy_http_stream_unittest.cc |
@@ -11,7 +11,7 @@ namespace net { |
class SpdyHttpStreamTest : public testing::Test { |
public: |
- OrderedSocketData* data() { return data_; } |
+ OrderedSocketData* data() { return data_.get(); } |
protected: |
SpdyHttpStreamTest() {} |
@@ -26,7 +26,8 @@ class SpdyHttpStreamTest : public testing::Test { |
MockWrite* writes, size_t writes_count, |
HostPortPair& host_port_pair) { |
HostPortProxyPair pair(host_port_pair, ProxyServer::Direct()); |
- data_ = new OrderedSocketData(reads, reads_count, writes, writes_count); |
+ data_.reset(new OrderedSocketData(reads, reads_count, |
+ writes, writes_count)); |
session_deps_.socket_factory->AddSocketDataProvider(data_.get()); |
http_session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_); |
session_ = http_session_->spdy_session_pool()->Get(pair, BoundNetLog()); |
@@ -45,7 +46,7 @@ class SpdyHttpStreamTest : public testing::Test { |
return session_->InitializeWithSocket(connection.release(), false, OK); |
} |
SpdySessionDependencies session_deps_; |
- scoped_refptr<OrderedSocketData> data_; |
+ scoped_ptr<OrderedSocketData> data_; |
scoped_refptr<HttpNetworkSession> http_session_; |
scoped_refptr<SpdySession> session_; |
scoped_refptr<TransportSocketParams> transport_params_; |