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

Unified Diff: components/proximity_auth/remote_device_loader_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/remote_device_loader_unittest.cc
diff --git a/components/proximity_auth/remote_device_loader_unittest.cc b/components/proximity_auth/remote_device_loader_unittest.cc
index bfc5e1474fd70d8c27ae128d995022799d6af772..d1bf80296a886bbfba1ab8043d392a056da9c94b 100644
--- a/components/proximity_auth/remote_device_loader_unittest.cc
+++ b/components/proximity_auth/remote_device_loader_unittest.cc
@@ -5,6 +5,7 @@
#include "components/proximity_auth/remote_device_loader.h"
#include <stddef.h>
+#include <utility>
#include "base/bind.h"
#include "base/macros.h"
@@ -86,7 +87,7 @@ class ProximityAuthRemoteDeviceLoaderTest : public testing::Test {
TEST_F(ProximityAuthRemoteDeviceLoaderTest, LoadZeroDevices) {
std::vector<cryptauth::ExternalDeviceInfo> unlock_keys;
RemoteDeviceLoader loader(unlock_keys, user_private_key_, kUserId,
- secure_message_delegate_.Pass(),
+ std::move(secure_message_delegate_),
pref_manager_.get());
std::vector<RemoteDevice> result;
@@ -102,7 +103,7 @@ TEST_F(ProximityAuthRemoteDeviceLoaderTest, LoadOneClassicRemoteDevice) {
std::vector<cryptauth::ExternalDeviceInfo> unlock_keys(1,
CreateUnlockKey("1"));
RemoteDeviceLoader loader(unlock_keys, user_private_key_, kUserId,
- secure_message_delegate_.Pass(),
+ std::move(secure_message_delegate_),
pref_manager_.get());
std::vector<RemoteDevice> result;
@@ -125,7 +126,7 @@ TEST_F(ProximityAuthRemoteDeviceLoaderTest, LoadOneBLERemoteDevice) {
CreateUnlockKey("1"));
unlock_keys[0].set_bluetooth_address(std::string());
RemoteDeviceLoader loader(unlock_keys, user_private_key_, kUserId,
- secure_message_delegate_.Pass(),
+ std::move(secure_message_delegate_),
pref_manager_.get());
std::string ble_address = "00:00:00:00:00:00";
@@ -152,7 +153,7 @@ TEST_F(ProximityAuthRemoteDeviceLoaderTest, LoadThreeRemoteDevice) {
unlock_keys.push_back(CreateUnlockKey("2"));
unlock_keys.push_back(CreateUnlockKey("3"));
RemoteDeviceLoader loader(unlock_keys, user_private_key_, kUserId,
- secure_message_delegate_.Pass(),
+ std::move(secure_message_delegate_),
pref_manager_.get());
std::vector<RemoteDevice> result;
« no previous file with comments | « components/proximity_auth/remote_device_loader.cc ('k') | components/proximity_auth/remote_status_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698