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

Unified Diff: mojo/public/cpp/bindings/tests/bindings_perftest.cc

Issue 1535943002: Convert Pass()→std::move() in //mojo/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove self-move checks to avoid triggering clang warning. 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: mojo/public/cpp/bindings/tests/bindings_perftest.cc
diff --git a/mojo/public/cpp/bindings/tests/bindings_perftest.cc b/mojo/public/cpp/bindings/tests/bindings_perftest.cc
index 7440acce1e03679247e9761bf5e451f7feb451b9..a2a77599bf2fd0503cf754ed64494fff601e4426 100644
--- a/mojo/public/cpp/bindings/tests/bindings_perftest.cc
+++ b/mojo/public/cpp/bindings/tests/bindings_perftest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/test_support/test_support.h"
#include "mojo/public/cpp/test_support/test_utils.h"
@@ -51,8 +53,7 @@ class PingPongTest {
};
PingPongTest::PingPongTest(test::PingServicePtr service)
- : service_(service.Pass()) {
-}
+ : service_(std::move(service)) {}
void PingPongTest::Run(unsigned int iterations) {
iterations_to_run_ = iterations;
@@ -92,7 +93,7 @@ TEST_F(MojoBindingsPerftest, InProcessPingPong) {
test::PingServicePtr service;
PingServiceImpl impl;
Binding<test::PingService> binding(&impl, GetProxy(&service));
- PingPongTest test(service.Pass());
+ PingPongTest test(std::move(service));
{
const unsigned int kIterations = 100000;

Powered by Google App Engine
This is Rietveld 408576698