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

Unified Diff: remoting/test/app_remoting_connected_client_fixture.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
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 | « remoting/signaling/xmpp_stream_parser_unittest.cc ('k') | remoting/test/app_remoting_connection_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/app_remoting_connected_client_fixture.cc
diff --git a/remoting/test/app_remoting_connected_client_fixture.cc b/remoting/test/app_remoting_connected_client_fixture.cc
index 3660fb4b2c6a36d76b42f72b412b5ab3ef3148b0..71ceae6d79944c1179bc79397483fb3aab2c9d69 100644
--- a/remoting/test/app_remoting_connected_client_fixture.cc
+++ b/remoting/test/app_remoting_connected_client_fixture.cc
@@ -4,6 +4,8 @@
#include "remoting/test/app_remoting_connected_client_fixture.h"
+#include <utility>
+
#include "base/callback_helpers.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
@@ -39,11 +41,9 @@ namespace test {
AppRemotingConnectedClientFixture::AppRemotingConnectedClientFixture()
: application_details_(
AppRemotingSharedData->GetDetailsFromAppName(GetParam())),
- timer_(new base::Timer(true, false)) {
-}
+ timer_(new base::Timer(true, false)) {}
-AppRemotingConnectedClientFixture::~AppRemotingConnectedClientFixture() {
-}
+AppRemotingConnectedClientFixture::~AppRemotingConnectedClientFixture() {}
void AppRemotingConnectedClientFixture::SetUp() {
connection_helper_.reset(
@@ -53,7 +53,7 @@ void AppRemotingConnectedClientFixture::SetUp() {
test_chromoting_client->AddRemoteConnectionObserver(this);
- connection_helper_->Initialize(test_chromoting_client.Pass());
+ connection_helper_->Initialize(std::move(test_chromoting_client));
if (!connection_helper_->StartConnection()) {
LOG(ERROR) << "Remote host connection could not be established.";
FAIL();
« no previous file with comments | « remoting/signaling/xmpp_stream_parser_unittest.cc ('k') | remoting/test/app_remoting_connection_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698