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

Unified Diff: net/quic/quic_chromium_client_stream_test.cc

Issue 1969893002: Remove unnecessary array allocation in cronet_bidirectional_stream_adapter.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add include vector Created 4 years, 7 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/quic/quic_chromium_client_stream.cc ('k') | net/spdy/bidirectional_stream_spdy_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_chromium_client_stream_test.cc
diff --git a/net/quic/quic_chromium_client_stream_test.cc b/net/quic/quic_chromium_client_stream_test.cc
index bc6d734322cd41e47756ce7d162e58fa5106f433..3e56cc7737db749d3590616c9289c14cdd1b18a4 100644
--- a/net/quic/quic_chromium_client_stream_test.cc
+++ b/net/quic/quic_chromium_client_stream_test.cc
@@ -477,9 +477,9 @@ TEST_P(QuicChromiumClientStreamTest, WritevStreamData) {
.WillOnce(Return(QuicConsumedData(buf1->size(), false)))
.WillOnce(Return(QuicConsumedData(buf2->size(), true)));
TestCompletionCallback callback;
- EXPECT_EQ(OK, stream_->WritevStreamData({buf1.get(), buf2.get()},
- {buf1->size(), buf2->size()}, true,
- callback.callback()));
+ EXPECT_EQ(
+ OK, stream_->WritevStreamData({buf1, buf2}, {buf1->size(), buf2->size()},
+ true, callback.callback()));
}
TEST_P(QuicChromiumClientStreamTest, WritevStreamDataAsync) {
« no previous file with comments | « net/quic/quic_chromium_client_stream.cc ('k') | net/spdy/bidirectional_stream_spdy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698