| 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 b05e327af5e47c010859561b5e032dc042c33036..0e8cc21831cbe6ec43975c3bfdf6bb9c8d0fb481 100644
|
| --- a/net/tools/quic/quic_client_session_test.cc
|
| +++ b/net/tools/quic/quic_client_session_test.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "net/tools/quic/quic_client_session.h"
|
|
|
| +#include <memory>
|
| #include <vector>
|
|
|
| #include "base/strings/stringprintf.h"
|
| @@ -123,7 +124,7 @@ class QuicClientSessionTest : public ::testing::TestWithParam<QuicVersion> {
|
| MockConnectionHelper helper_;
|
| MockAlarmFactory alarm_factory_;
|
| PacketSavingConnection* connection_;
|
| - scoped_ptr<TestQuicClientSession> session_;
|
| + std::unique_ptr<TestQuicClientSession> session_;
|
| QuicClientPushPromiseIndex push_promise_index_;
|
| SpdyHeaderBlock push_promise_;
|
| string promise_url_;
|
| @@ -265,9 +266,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;
|
| @@ -288,10 +289,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);
|
|
|