Index: net/tools/quic/end_to_end_test.cc |
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc |
index 6028cb338c326618a8bdbdd88d25ed46375a08c3..5d645914b4ed9d5977a0ad6a72a7f803f0d3c6ea 100644 |
--- a/net/tools/quic/end_to_end_test.cc |
+++ b/net/tools/quic/end_to_end_test.cc |
@@ -1090,11 +1090,12 @@ TEST_P(EndToEndTest, ConnectionMigrationClientIPChanged) { |
EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo")); |
EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); |
- scoped_ptr<WrongAddressWriter> writer(new WrongAddressWriter()); |
+ WrongAddressWriter* writer = new WrongAddressWriter(); |
writer->set_writer(new QuicDefaultPacketWriter(client_->client()->fd())); |
QuicConnectionPeer::SetWriter(client_->client()->session()->connection(), |
- writer.get()); |
+ writer, |
+ true /* owns_writer */); |
client_->SendSynchronousRequest("/bar"); |