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

Unified Diff: remoting/test/app_remoting_latency_test_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
Index: remoting/test/app_remoting_latency_test_fixture.cc
diff --git a/remoting/test/app_remoting_latency_test_fixture.cc b/remoting/test/app_remoting_latency_test_fixture.cc
index e8692efc97235eca004b6c252aadb844259da824..7be94d1a9f32d87a4705f8978b5cc4d555fc1e56 100644
--- a/remoting/test/app_remoting_latency_test_fixture.cc
+++ b/remoting/test/app_remoting_latency_test_fixture.cc
@@ -4,6 +4,8 @@
#include "remoting/test/app_remoting_latency_test_fixture.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/run_loop.h"
#include "base/thread_task_runner_handle.h"
@@ -24,21 +26,20 @@ AppRemotingLatencyTestFixture::AppRemotingLatencyTestFixture()
// NOTE: Derived fixture must initialize application details in constructor.
}
-AppRemotingLatencyTestFixture::~AppRemotingLatencyTestFixture() {
-}
+AppRemotingLatencyTestFixture::~AppRemotingLatencyTestFixture() {}
void AppRemotingLatencyTestFixture::SetUp() {
scoped_ptr<TestVideoRenderer> test_video_renderer(new TestVideoRenderer());
test_video_renderer_ = test_video_renderer->GetWeakPtr();
scoped_ptr<TestChromotingClient> test_chromoting_client(
- new TestChromotingClient(test_video_renderer.Pass()));
+ new TestChromotingClient(std::move(test_video_renderer)));
test_chromoting_client->AddRemoteConnectionObserver(this);
connection_helper_.reset(
new AppRemotingConnectionHelper(GetApplicationDetails()));
- 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.";
« no previous file with comments | « remoting/test/app_remoting_connection_helper.cc ('k') | remoting/test/app_remoting_test_driver_environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698