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

Unified Diff: net/server/http_server_unittest.cc

Issue 2503993002: Change unique_ptr::reset() for std::move (Closed)
Patch Set: Change unique_ptr::reset() for std::move Created 4 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/quic/core/quic_crypto_client_stream.cc ('k') | net/socket/udp_socket_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server_unittest.cc
diff --git a/net/server/http_server_unittest.cc b/net/server/http_server_unittest.cc
index 87c2784da62ec2304b20983b4841f28d3725765d..3ec6d9c6fab2dd6104482e23a6924203e0a0ff07 100644
--- a/net/server/http_server_unittest.cc
+++ b/net/server/http_server_unittest.cc
@@ -248,7 +248,7 @@ class HttpServerTest : public testing::Test,
}
void HandleAcceptResult(std::unique_ptr<StreamSocket> socket) {
- server_->accepted_socket_.reset(socket.release());
+ server_->accepted_socket_ = std::move(socket);
server_->HandleAcceptResult(OK);
}
« no previous file with comments | « net/quic/core/quic_crypto_client_stream.cc ('k') | net/socket/udp_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698