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

Unified Diff: net/quic/test_tools/crypto_test_utils.cc

Issue 2417023003: Remove stl_util's deletion functions from: (Closed)
Patch Set: internal snapshot 10 Created 4 years, 2 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
Index: net/quic/test_tools/crypto_test_utils.cc
diff --git a/net/quic/test_tools/crypto_test_utils.cc b/net/quic/test_tools/crypto_test_utils.cc
index 7e95691aef9cb5ee96c65b155a341ffc3809057f..05a3c69b20417c7d9ff5465ef86f8bc49cdad4a1 100644
--- a/net/quic/test_tools/crypto_test_utils.cc
+++ b/net/quic/test_tools/crypto_test_utils.cc
@@ -927,7 +927,7 @@ void CryptoTestUtils::MovePackets(PacketSavingConnection* source_conn,
break;
}
- for (const QuicStreamFrame* stream_frame : framer.stream_frames()) {
+ for (const auto& stream_frame : framer.stream_frames()) {
ASSERT_TRUE(crypto_framer.ProcessInput(
StringPiece(stream_frame->data_buffer, stream_frame->data_length)));
ASSERT_FALSE(crypto_visitor.error());
@@ -980,7 +980,7 @@ string CryptoTestUtils::GenerateClientNonceHex(
new_config_options));
primary_config->set_primary_time(clock->WallNow().ToUNIXSeconds());
std::unique_ptr<net::CryptoHandshakeMessage> msg(
- crypto_config->AddConfig(primary_config.get(), clock->WallNow()));
+ crypto_config->AddConfig(std::move(primary_config), clock->WallNow()));
StringPiece orbit;
CHECK(msg->GetStringPiece(net::kORBT, &orbit));
string nonce;
« no previous file with comments | « net/quic/core/quic_multipath_received_packet_manager_test.cc ('k') | net/quic/test_tools/crypto_test_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698