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

Unified Diff: device/serial/serial_service_unittest.cc

Issue 1544323002: Convert Pass()→std::move() in //device (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 | « device/serial/serial_service_impl.cc ('k') | device/serial/test_serial_io_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_service_unittest.cc
diff --git a/device/serial/serial_service_unittest.cc b/device/serial/serial_service_unittest.cc
index e0105a00e24745a6fa6ba079c910ef397a902b18..2b0468ced15d3d313b16507fbf3ee1cfd955e552 100644
--- a/device/serial/serial_service_unittest.cc
+++ b/device/serial/serial_service_unittest.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 "base/bind.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
@@ -21,7 +23,7 @@ class FakeSerialDeviceEnumerator : public SerialDeviceEnumerator {
mojo::Array<serial::DeviceInfoPtr> devices(1);
devices[0] = serial::DeviceInfo::New();
devices[0]->path = "device";
- return devices.Pass();
+ return devices;
}
};
@@ -44,7 +46,7 @@ class SerialServiceTest : public testing::Test {
SerialServiceTest() : connected_(false), expecting_error_(false) {}
void StoreDevices(mojo::Array<serial::DeviceInfoPtr> devices) {
- devices_ = devices.Pass();
+ devices_ = std::move(devices);
StopMessageLoop();
}
@@ -88,7 +90,7 @@ class SerialServiceTest : public testing::Test {
mojo::GetProxy(&source_client);
service->Connect(path, serial::ConnectionOptions::New(),
mojo::GetProxy(&connection), mojo::GetProxy(&sink),
- mojo::GetProxy(&source), source_client.Pass());
+ mojo::GetProxy(&source), std::move(source_client));
connection.set_connection_error_handler(base::Bind(
&SerialServiceTest::OnConnectionError, base::Unretained(this)));
expecting_error_ = !expecting_success;
« no previous file with comments | « device/serial/serial_service_impl.cc ('k') | device/serial/test_serial_io_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698