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

Unified Diff: net/tools/quic/test_tools/quic_test_client.cc

Issue 2093553004: Reduce SpdyHeaderBlock copies with move semantics in shared code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove non-shared files (into a separate CL). Created 4 years, 6 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_spdy_client_stream.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_client.cc
diff --git a/net/tools/quic/test_tools/quic_test_client.cc b/net/tools/quic/test_tools/quic_test_client.cc
index 760c451af1cfad29321941787cebb4052638fdaf..5271ad18c2a5de98de50ea8ad9e2e2d1dc373001 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -5,6 +5,7 @@
#include "net/tools/quic/test_tools/quic_test_client.h"
#include <memory>
+#include <utility>
#include "base/time/time.h"
#include "net/base/completion_callback.h"
@@ -278,7 +279,7 @@ ssize_t QuicTestClient::GetOrCreateStreamAndSendRequest(
// HTTP/2 requests should include the :authority pseudo hader.
spdy_headers[":authority"] = client_->server_id().host();
}
- ret = stream->SendRequest(spdy_headers, body, fin);
+ ret = stream->SendRequest(std::move(spdy_headers), body, fin);
++num_requests_;
} else {
stream->WriteOrBufferBody(body.as_string(), fin, delegate);
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698