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

Unified Diff: device/bluetooth/bluetooth_gatt_bluez_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
Index: device/bluetooth/bluetooth_gatt_bluez_unittest.cc
diff --git a/device/bluetooth/bluetooth_gatt_bluez_unittest.cc b/device/bluetooth/bluetooth_gatt_bluez_unittest.cc
index 7dcfe2704f187e99dc9771cf8dfd8e7bd72181f4..575c867b2f56ebccf49aba049ce136f1f0aacba6 100644
--- a/device/bluetooth/bluetooth_gatt_bluez_unittest.cc
+++ b/device/bluetooth/bluetooth_gatt_bluez_unittest.cc
@@ -4,6 +4,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
@@ -138,7 +139,7 @@ class BluetoothGattBlueZTest : public testing::Test {
void GattConnectionCallback(scoped_ptr<BluetoothGattConnection> conn) {
++success_callback_count_;
- gatt_conn_ = conn.Pass();
+ gatt_conn_ = std::move(conn);
}
void NotifySessionCallback(scoped_ptr<BluetoothGattNotifySession> session) {
« no previous file with comments | « device/bluetooth/bluetooth_discovery_session.cc ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698