Index: net/tools/quic/quic_client_session_test.cc |
diff --git a/net/tools/quic/quic_client_session_test.cc b/net/tools/quic/quic_client_session_test.cc |
index 1619eed34178dc348a7c25dadaa78a3a3a9da6c3..09ace38a364bab16bfeca1c561e9620ecfa945da 100644 |
--- a/net/tools/quic/quic_client_session_test.cc |
+++ b/net/tools/quic/quic_client_session_test.cc |
@@ -121,7 +121,7 @@ class QuicClientSessionTest : public ::testing::TestWithParam<QuicVersion> { |
QuicCryptoClientConfig crypto_config_; |
MockConnectionHelper helper_; |
PacketSavingConnection* connection_; |
- scoped_ptr<TestQuicClientSession> session_; |
+ std::unique_ptr<TestQuicClientSession> session_; |
QuicClientPushPromiseIndex push_promise_index_; |
SpdyHeaderBlock push_promise_; |
string promise_url_; |
@@ -263,9 +263,9 @@ TEST_P(QuicClientSessionTest, InvalidPacketReceived) { |
// Verify that a non-decryptable packet doesn't close the connection. |
QuicConnectionId connection_id = session_->connection()->connection_id(); |
- scoped_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket( |
+ std::unique_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket( |
connection_id, false, false, false, kDefaultPathId, 100, "data")); |
- scoped_ptr<QuicReceivedPacket> received( |
+ std::unique_ptr<QuicReceivedPacket> received( |
ConstructReceivedPacket(*packet, QuicTime::Zero())); |
// Change the last byte of the encrypted data. |
*(const_cast<char*>(received->data() + received->length() - 1)) += 1; |
@@ -286,10 +286,10 @@ TEST_P(QuicClientSessionTest, InvalidFramedPacketReceived) { |
// Verify that a decryptable packet with bad frames does close the connection. |
QuicConnectionId connection_id = session_->connection()->connection_id(); |
- scoped_ptr<QuicEncryptedPacket> packet(ConstructMisFramedEncryptedPacket( |
+ std::unique_ptr<QuicEncryptedPacket> packet(ConstructMisFramedEncryptedPacket( |
connection_id, false, false, false, kDefaultPathId, 100, "data", |
PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER, nullptr)); |
- scoped_ptr<QuicReceivedPacket> received( |
+ std::unique_ptr<QuicReceivedPacket> received( |
ConstructReceivedPacket(*packet, QuicTime::Zero())); |
EXPECT_CALL(*connection_, CloseConnection(_, _, _)).Times(1); |
session_->ProcessUdpPacket(client_address, server_address, *received); |