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

Unified Diff: net/quic/p2p/quic_p2p_session_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/quic/p2p/quic_p2p_session.cc ('k') | net/quic/quic_chromium_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/p2p/quic_p2p_session_test.cc
diff --git a/net/quic/p2p/quic_p2p_session_test.cc b/net/quic/p2p/quic_p2p_session_test.cc
index 3c029ea582d4e2abeeb457ae4230e61d456cc547..b5f632f938cf4ede21eaf4532095e56cc1a4cde9 100644
--- a/net/quic/p2p/quic_p2p_session_test.cc
+++ b/net/quic/p2p/quic_p2p_session_test.cc
@@ -4,6 +4,8 @@
#include "net/quic/p2p/quic_p2p_session.h"
+#include <utility>
+
#include "base/callback_helpers.h"
#include "base/location.h"
#include "base/macros.h"
@@ -230,10 +232,10 @@ class QuicP2PSessionTest : public ::testing::Test {
QuicP2PCryptoConfig crypto_config(kTestSharedKey);
- session1_ =
- CreateP2PSession(socket1.Pass(), crypto_config, Perspective::IS_SERVER);
- session2_ =
- CreateP2PSession(socket2.Pass(), crypto_config, Perspective::IS_CLIENT);
+ session1_ = CreateP2PSession(std::move(socket1), crypto_config,
+ Perspective::IS_SERVER);
+ session2_ = CreateP2PSession(std::move(socket2), crypto_config,
+ Perspective::IS_CLIENT);
}
scoped_ptr<QuicP2PSession> CreateP2PSession(scoped_ptr<Socket> socket,
@@ -245,10 +247,11 @@ class QuicP2PSessionTest : public ::testing::Test {
0, net::IPEndPoint(ip, 0), &quic_helper_, writer_factory,
true /* owns_writer */, perspective, QuicSupportedVersions()));
- scoped_ptr<QuicP2PSession> result(new QuicP2PSession(
- config_, crypto_config, quic_connection1.Pass(), socket.Pass()));
+ scoped_ptr<QuicP2PSession> result(
+ new QuicP2PSession(config_, crypto_config, std::move(quic_connection1),
+ std::move(socket)));
result->Initialize();
- return result.Pass();
+ return result;
}
void TestStreamConnection(QuicP2PSession* from_session,
« no previous file with comments | « net/quic/p2p/quic_p2p_session.cc ('k') | net/quic/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698