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

Unified Diff: net/base/layered_network_delegate_unittest.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/base/layered_network_delegate.cc ('k') | net/base/mock_file_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate_unittest.cc
diff --git a/net/base/layered_network_delegate_unittest.cc b/net/base/layered_network_delegate_unittest.cc
index fb427a49c3c07ae0295f7486ddd3d73cc60f2169..6ca77a5015dfee2fd80aa516ea1922407d2d6154 100644
--- a/net/base/layered_network_delegate_unittest.cc
+++ b/net/base/layered_network_delegate_unittest.cc
@@ -5,6 +5,7 @@
#include "net/base/layered_network_delegate.h"
#include <map>
+#include <utility>
#include "base/bind.h"
#include "base/files/file_path.h"
@@ -174,7 +175,7 @@ class TestLayeredNetworkDelegate : public LayeredNetworkDelegate {
public:
TestLayeredNetworkDelegate(scoped_ptr<NetworkDelegate> network_delegate,
CountersMap* counters)
- : LayeredNetworkDelegate(network_delegate.Pass()),
+ : LayeredNetworkDelegate(std::move(network_delegate)),
context_(true),
counters_(counters) {
context_.Init();
@@ -373,9 +374,9 @@ class LayeredNetworkDelegateTest : public testing::Test {
scoped_ptr<TestNetworkDelegateImpl> test_network_delegate(
new TestNetworkDelegateImpl(&layered_network_delegate_counters));
test_network_delegate_ = test_network_delegate.get();
- layered_network_delegate_ =
- scoped_ptr<TestLayeredNetworkDelegate>(new TestLayeredNetworkDelegate(
- test_network_delegate.Pass(), &layered_network_delegate_counters));
+ layered_network_delegate_ = scoped_ptr<TestLayeredNetworkDelegate>(
+ new TestLayeredNetworkDelegate(std::move(test_network_delegate),
+ &layered_network_delegate_counters));
}
CountersMap layered_network_delegate_counters;
« no previous file with comments | « net/base/layered_network_delegate.cc ('k') | net/base/mock_file_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698