| 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;
|
|
|