Index: net/http/http_pipelined_connection_impl_unittest.cc |
diff --git a/net/http/http_pipelined_connection_impl_unittest.cc b/net/http/http_pipelined_connection_impl_unittest.cc |
index cc4648bd75d4c2f730ea4da545a730d3ead481d0..0f04d81360c439f371410f9d7c53d2382d00ef01 100644 |
--- a/net/http/http_pipelined_connection_impl_unittest.cc |
+++ b/net/http/http_pipelined_connection_impl_unittest.cc |
@@ -80,8 +80,8 @@ class HttpPipelinedConnectionImplTest : public testing::Test { |
void Initialize(MockRead* reads, size_t reads_count, |
MockWrite* writes, size_t writes_count) { |
- data_ = new DeterministicSocketData(reads, reads_count, |
- writes, writes_count); |
+ data_.reset(new DeterministicSocketData(reads, reads_count, |
+ writes, writes_count)); |
data_->set_connect_data(MockConnect(SYNCHRONOUS, OK)); |
if (reads_count || writes_count) { |
data_->StopAfter(reads_count + writes_count); |
@@ -148,7 +148,7 @@ class HttpPipelinedConnectionImplTest : public testing::Test { |
DeterministicMockClientSocketFactory factory_; |
ClientSocketPoolHistograms histograms_; |
MockTransportClientSocketPool pool_; |
- scoped_refptr<DeterministicSocketData> data_; |
+ scoped_ptr<DeterministicSocketData> data_; |
HostPortPair origin_; |
SSLConfig ssl_config_; |