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

Unified Diff: net/http/http_network_transaction_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
Index: net/http/http_network_transaction_unittest.cc
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index d691aaf616da070e896d23d8f5977e688842c2f5..f5cfd56f350fd26eca9582fb0e1b48a6f1f23a9e 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -8157,7 +8157,7 @@ TEST_F(HttpNetworkTransactionTest, CrossOriginSPDYProxyPush) {
BoundTestNetLog log;
session_deps_.net_log = log.bound().net_log();
- session_deps_.proxy_delegate.reset(proxy_delegate.release());
+ session_deps_.proxy_delegate = std::move(proxy_delegate);
std::unique_ptr<HttpNetworkSession> session(CreateSession(&session_deps_));
@@ -8268,7 +8268,7 @@ TEST_F(HttpNetworkTransactionTest, CrossOriginProxyPushCorrectness) {
session_deps_.net_log = log.bound().net_log();
// Enable cross-origin push.
- session_deps_.proxy_delegate.reset(proxy_delegate.release());
+ session_deps_.proxy_delegate = std::move(proxy_delegate);
std::unique_ptr<HttpNetworkSession> session(CreateSession(&session_deps_));
@@ -8349,7 +8349,7 @@ TEST_F(HttpNetworkTransactionTest, SameOriginProxyPushCorrectness) {
session_deps_.net_log = log.bound().net_log();
// Enable cross-origin push.
- session_deps_.proxy_delegate.reset(proxy_delegate.release());
+ session_deps_.proxy_delegate = std::move(proxy_delegate);
std::unique_ptr<HttpNetworkSession> session(CreateSession(&session_deps_));
« no previous file with comments | « net/disk_cache/simple/simple_entry_impl.cc ('k') | net/http/http_stream_factory_impl_job_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698