Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index b8720709ce213e67fa515477c6b07e78c1a5fe9a..7faafe7a844ba689c1f2664b62b5839494aaaaec 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -2121,9 +2121,9 @@ TEST_P(QuicConnectionTest, ReviveMissingPacketWithVaryingSeqNumLengths) { |
EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_)); |
// Set up a debug visitor to the connection. |
- scoped_ptr<FecQuicConnectionDebugVisitor> |
- fec_visitor(new FecQuicConnectionDebugVisitor); |
- connection_.set_debug_visitor(fec_visitor.get()); |
+ FecQuicConnectionDebugVisitor* fec_visitor = |
+ new FecQuicConnectionDebugVisitor(); |
+ connection_.set_debug_visitor(fec_visitor); |
QuicPacketSequenceNumber fec_packet = 0; |
QuicSequenceNumberLength lengths[] = {PACKET_6BYTE_SEQUENCE_NUMBER, |
@@ -2149,9 +2149,9 @@ TEST_P(QuicConnectionTest, ReviveMissingPacketWithVaryingConnectionIdLengths) { |
EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_)); |
// Set up a debug visitor to the connection. |
- scoped_ptr<FecQuicConnectionDebugVisitor> |
- fec_visitor(new FecQuicConnectionDebugVisitor); |
- connection_.set_debug_visitor(fec_visitor.get()); |
+ FecQuicConnectionDebugVisitor* fec_visitor = |
+ new FecQuicConnectionDebugVisitor(); |
+ connection_.set_debug_visitor(fec_visitor); |
QuicPacketSequenceNumber fec_packet = 0; |
QuicConnectionIdLength lengths[] = {PACKET_8BYTE_CONNECTION_ID, |
@@ -3948,9 +3948,9 @@ class MockQuicConnectionDebugVisitor |
TEST_P(QuicConnectionTest, OnPacketHeaderDebugVisitor) { |
QuicPacketHeader header; |
- scoped_ptr<MockQuicConnectionDebugVisitor> |
- debug_visitor(new StrictMock<MockQuicConnectionDebugVisitor>); |
- connection_.set_debug_visitor(debug_visitor.get()); |
+ MockQuicConnectionDebugVisitor* debug_visitor = |
+ new MockQuicConnectionDebugVisitor(); |
+ connection_.set_debug_visitor(debug_visitor); |
EXPECT_CALL(*debug_visitor, OnPacketHeader(Ref(header))).Times(1); |
connection_.OnPacketHeader(header); |
} |