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

Unified Diff: device/devices_app/usb/device_manager_impl_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/devices_app/usb/device_manager_impl.cc ('k') | device/devices_app/usb/fake_permission_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/usb/device_manager_impl_unittest.cc
diff --git a/device/devices_app/usb/device_manager_impl_unittest.cc b/device/devices_app/usb/device_manager_impl_unittest.cc
index c7f5f85d319b493fc472f988892ff9555f90865e..720c811b78f1c177c350b335f160ed0d037cc1d4 100644
--- a/device/devices_app/usb/device_manager_impl_unittest.cc
+++ b/device/devices_app/usb/device_manager_impl_unittest.cc
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stddef.h>
+#include "device/devices_app/usb/device_manager_impl.h"
+#include <stddef.h>
#include <set>
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/macros.h"
@@ -15,7 +17,6 @@
#include "base/thread_task_runner_handle.h"
#include "device/core/mock_device_client.h"
#include "device/devices_app/usb/device_impl.h"
-#include "device/devices_app/usb/device_manager_impl.h"
#include "device/devices_app/usb/fake_permission_provider.h"
#include "device/usb/mock_usb_device.h"
#include "device/usb/mock_usb_device_handle.h"
@@ -40,9 +41,9 @@ class USBDeviceManagerImplTest : public testing::Test {
PermissionProviderPtr permission_provider;
permission_provider_.Bind(mojo::GetProxy(&permission_provider));
DeviceManagerPtr device_manager;
- DeviceManagerImpl::Create(permission_provider.Pass(),
+ DeviceManagerImpl::Create(std::move(permission_provider),
mojo::GetProxy(&device_manager));
- return device_manager.Pass();
+ return device_manager;
}
MockDeviceClient device_client_;
@@ -120,7 +121,7 @@ TEST_F(USBDeviceManagerImplTest, GetDevices) {
base::RunLoop loop;
device_manager->GetDevices(
- options.Pass(),
+ std::move(options),
base::Bind(&ExpectDevicesAndThen, guids, loop.QuitClosure()));
loop.Run();
}
« no previous file with comments | « device/devices_app/usb/device_manager_impl.cc ('k') | device/devices_app/usb/fake_permission_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698