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

Unified Diff: components/proximity_auth/bluetooth_connection_finder_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/bluetooth_connection_finder_unittest.cc
diff --git a/components/proximity_auth/bluetooth_connection_finder_unittest.cc b/components/proximity_auth/bluetooth_connection_finder_unittest.cc
index 36432afa0d3e0b616267d7b2def4cc11aa2ebe1f..f8f1b7d5f825483479ddfb8988bf697f3321f2c8 100644
--- a/components/proximity_auth/bluetooth_connection_finder_unittest.cc
+++ b/components/proximity_auth/bluetooth_connection_finder_unittest.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/bluetooth_connection_finder.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -149,7 +151,7 @@ class ProximityAuthBluetoothConnectionFinderTest : public testing::Test {
MOCK_METHOD1(OnConnectionFoundProxy, void(Connection* connection));
void OnConnectionFound(scoped_ptr<Connection> connection) {
OnConnectionFoundProxy(connection.get());
- last_found_connection_ = connection.Pass();
+ last_found_connection_ = std::move(connection);
}
// Starts |connection_finder_|. If |expect_connection| is true, then we set an
« no previous file with comments | « components/proximity_auth/bluetooth_connection_finder.cc ('k') | components/proximity_auth/bluetooth_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698