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

Unified Diff: net/quic/quic_stream_sequencer_buffer_test.cc

Issue 1851933002: Convert //url to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup 7 Created 4 years, 9 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/http/http_auth_preferences.h ('k') | url/gurl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_sequencer_buffer_test.cc
diff --git a/net/quic/quic_stream_sequencer_buffer_test.cc b/net/quic/quic_stream_sequencer_buffer_test.cc
index c925d3e8855710cf6ed4ac452f3f0bd9d4c0bc60..dd845a36dd2bbd2139b8c22d7d9d3b2a84ac6a9f 100644
--- a/net/quic/quic_stream_sequencer_buffer_test.cc
+++ b/net/quic/quic_stream_sequencer_buffer_test.cc
@@ -507,7 +507,8 @@ TEST_F(QuicStreamSequencerBufferTest, ReadvAcrossLastBlock) {
EXPECT_EQ(2u, helper_->frame_arrival_time_map()->size());
// Read all data out.
- std::unique_ptr<char[]> dest1{new char[max_capacity_bytes_]{0}};
+ std::unique_ptr<char[]> dest1{new char[max_capacity_bytes_]};
+ dest1[0] = 0;
const iovec iov1{dest1.get(), max_capacity_bytes_};
EXPECT_EQ(max_capacity_bytes_ - 512 + 256, buffer_->Readv(&iov1, 1));
EXPECT_EQ(max_capacity_bytes_ + 256, buffer_->BytesConsumed());
« no previous file with comments | « net/http/http_auth_preferences.h ('k') | url/gurl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698