Change scoped_ptr to std::unique_ptr in //net/quic.
[email protected]
BUG=554298
Review URL: https://codereview.chromium.org/1892973003
Cr-Commit-Position: refs/heads/master@{#387772}
diff --git a/net/quic/test_tools/quic_test_utils.cc b/net/quic/test_tools/quic_test_utils.cc
index 3d9267a..5fd9d7de 100644
--- a/net/quic/test_tools/quic_test_utils.cc
+++ b/net/quic/test_tools/quic_test_utils.cc
@@ -535,7 +535,7 @@
QuicFramer framer(versions != nullptr ? *versions : QuicSupportedVersions(),
QuicTime::Zero(), Perspective::IS_CLIENT);
- scoped_ptr<QuicPacket> packet(
+ std::unique_ptr<QuicPacket> packet(
BuildUnsizedDataPacket(&framer, header, frames));
EXPECT_TRUE(packet != nullptr);
char* buffer = new char[kMaxPacketSize];
@@ -586,7 +586,7 @@
QuicFramer framer(versions != nullptr ? *versions : QuicSupportedVersions(),
QuicTime::Zero(), Perspective::IS_CLIENT);
- scoped_ptr<QuicPacket> packet(
+ std::unique_ptr<QuicPacket> packet(
BuildUnsizedDataPacket(&framer, header, frames));
EXPECT_TRUE(packet != nullptr);
@@ -611,7 +611,7 @@
EXPECT_EQ(actual_len, expected_len);
const int min_len = min(actual_len, expected_len);
const int max_len = max(actual_len, expected_len);
- scoped_ptr<bool[]> marks(new bool[max_len]);
+ std::unique_ptr<bool[]> marks(new bool[max_len]);
bool identical = (actual_len == expected_len);
for (int i = 0; i < min_len; ++i) {
if (actual[i] != expected[i]) {
@@ -651,7 +651,8 @@
const CryptoHandshakeMessage& message,
bool should_include_version) {
CryptoFramer crypto_framer;
- scoped_ptr<QuicData> data(crypto_framer.ConstructHandshakeMessage(message));
+ std::unique_ptr<QuicData> data(
+ crypto_framer.ConstructHandshakeMessage(message));
QuicFramer quic_framer(QuicSupportedVersions(), QuicTime::Zero(),
Perspective::IS_CLIENT);