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

Unified Diff: net/websockets/websocket_handshake_stream_create_helper_test.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/websockets/websocket_handshake_stream_create_helper.cc ('k') | net/websockets/websocket_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_handshake_stream_create_helper_test.cc
diff --git a/net/websockets/websocket_handshake_stream_create_helper_test.cc b/net/websockets/websocket_handshake_stream_create_helper_test.cc
index de16ae1987986713dec28bc5c8cb4bd149cad0fb..ffdbfe2ebfabb476ce775b84daa658d076c6eb27 100644
--- a/net/websockets/websocket_handshake_stream_create_helper_test.cc
+++ b/net/websockets/websocket_handshake_stream_create_helper_test.cc
@@ -5,6 +5,7 @@
#include "net/websockets/websocket_handshake_stream_create_helper.h"
#include <string>
+#include <utility>
#include <vector>
#include "base/macros.h"
@@ -47,7 +48,7 @@ class MockClientSocketHandleFactory {
CompletionCallback(),
&pool_,
BoundNetLog());
- return socket_handle.Pass();
+ return socket_handle;
}
private:
@@ -93,7 +94,7 @@ class WebSocketHandshakeStreamCreateHelperTest : public ::testing::Test {
WebSocketStandardResponse(extra_response_headers));
scoped_ptr<WebSocketHandshakeStreamBase> handshake(
- create_helper.CreateBasicStream(socket_handle.Pass(), false));
+ create_helper.CreateBasicStream(std::move(socket_handle), false));
// If in future the implementation type returned by CreateBasicStream()
// changes, this static_cast will be wrong. However, in that case the test
« no previous file with comments | « net/websockets/websocket_handshake_stream_create_helper.cc ('k') | net/websockets/websocket_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698