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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
index a24a7d74a2651b2d047c9b58f9c7e13c6bf3644c..34271825617937b043bbc893b7feddb80112d485 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
@@ -5,6 +5,7 @@
#include "components/proximity_auth/ble/bluetooth_low_energy_connection.h"
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/macros.h"
@@ -185,7 +186,7 @@ class ProximityAuthBluetoothLowEnergyConnectionTest : public testing::Test {
connection->SetTaskRunnerForTesting(task_runner_);
- return connection.Pass();
+ return connection;
}
// Transitions |connection| from DISCONNECTED to WAITING_CHARACTERISTICS
@@ -260,7 +261,7 @@ class ProximityAuthBluetoothLowEnergyConnectionTest : public testing::Test {
kToPeripheralCharID));
notify_session_alias_ = notify_session.get();
- notify_session_success_callback_.Run(notify_session.Pass());
+ notify_session_success_callback_.Run(std::move(notify_session));
task_runner_->RunUntilIdle();
EXPECT_EQ(connection->sub_status(),

Powered by Google App Engine
This is Rietveld 408576698