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

Unified Diff: net/http/http_proxy_client_socket_pool_unittest.cc

Issue 2096713002: Reduce SpdyHeaderBlock copies with move semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clear() does not work after all. 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/http/http_network_transaction_unittest.cc ('k') | net/quic/bidirectional_stream_quic_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_proxy_client_socket_pool_unittest.cc
diff --git a/net/http/http_proxy_client_socket_pool_unittest.cc b/net/http/http_proxy_client_socket_pool_unittest.cc
index f9d853dbaa930e14755a5e1986dbe19b4ab4a03d..15524bd37aac7c334f6dbb5164713614c20ea52d 100644
--- a/net/http/http_proxy_client_socket_pool_unittest.cc
+++ b/net/http/http_proxy_client_socket_pool_unittest.cc
@@ -4,6 +4,8 @@
#include "net/http/http_proxy_client_socket_pool.h"
+#include <utility>
+
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/strings/string_util.h"
@@ -302,7 +304,7 @@ TEST_P(HttpProxyClientSocketPoolTest, NeedAuth) {
spdy_util_.MaybeAddVersionHeader(&resp_block);
std::unique_ptr<SpdySerializedFrame> resp(
- spdy_util_.ConstructSpdyReply(1, resp_block));
+ spdy_util_.ConstructSpdyReply(1, std::move(resp_block)));
MockRead spdy_reads[] = {
CreateMockRead(*resp, 1, ASYNC),
MockRead(ASYNC, 0, 3)
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/quic/bidirectional_stream_quic_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698