Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: net/tools/quic/quic_dispatcher_test.cc

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_in_memory_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher_test.cc
diff --git a/net/tools/quic/quic_dispatcher_test.cc b/net/tools/quic/quic_dispatcher_test.cc
index a8c8ab4561e61ed2744aa58668141c0eedf53f5b..32542c01429ab3d81043108a7ea66dcb74306e98 100644
--- a/net/tools/quic/quic_dispatcher_test.cc
+++ b/net/tools/quic/quic_dispatcher_test.cc
@@ -230,10 +230,10 @@ class QuicDispatcherTest : public ::testing::Test {
QuicPacketNumberLength packet_number_length,
QuicPacketNumber packet_number) {
QuicVersionVector versions(SupportedVersions(version));
- scoped_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket(
+ std::unique_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket(
connection_id, has_version_flag, false, false, 0, packet_number, data,
connection_id_length, packet_number_length, &versions));
- scoped_ptr<QuicReceivedPacket> received_packet(
+ std::unique_ptr<QuicReceivedPacket> received_packet(
ConstructReceivedPacket(*packet, helper_.GetClock()->Now()));
data_ = string(packet->data(), packet->length());
@@ -358,9 +358,9 @@ TEST_F(QuicDispatcherTest, TimeWaitListManager) {
packet.public_header.version_flag = false;
packet.rejected_packet_number = 19191;
packet.nonce_proof = 132232;
- scoped_ptr<QuicEncryptedPacket> encrypted(
+ std::unique_ptr<QuicEncryptedPacket> encrypted(
QuicFramer::BuildPublicResetPacket(packet));
- scoped_ptr<QuicReceivedPacket> received(
+ std::unique_ptr<QuicReceivedPacket> received(
ConstructReceivedPacket(*encrypted, helper_.GetClock()->Now()));
EXPECT_CALL(*session1_, OnConnectionClosed(QUIC_PUBLIC_RESET, _,
ConnectionCloseSource::FROM_PEER))
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_in_memory_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698