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

Unified Diff: device/bluetooth/bluetooth_low_energy_win_unittest.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months 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/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_win_unittest.cc
diff --git a/device/bluetooth/bluetooth_low_energy_win_unittest.cc b/device/bluetooth/bluetooth_low_energy_win_unittest.cc
index 02afa0f8b3d89dbe93ffa0f45e6ccffd9cfd3c15..0565f407e37cd2d6cede947ee2616646491519cf 100644
--- a/device/bluetooth/bluetooth_low_energy_win_unittest.cc
+++ b/device/bluetooth/bluetooth_low_energy_win_unittest.cc
@@ -5,6 +5,8 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
+
#include "base/strings/sys_string_conversions.h"
#include "device/bluetooth/bluetooth_low_energy_win.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -59,7 +61,7 @@ TEST_F(BluetoothLowEnergyWinTest, DeviceRegistryPropertyValueAsString) {
memcpy(buffer.get(), wide_value.c_str(), buffer_size);
scoped_ptr<device::win::DeviceRegistryPropertyValue> value =
device::win::DeviceRegistryPropertyValue::Create(
- REG_SZ, buffer.Pass(), buffer_size).Pass();
+ REG_SZ, std::move(buffer), buffer_size);
EXPECT_EQ(test_value, value->AsString());
}
@@ -70,7 +72,7 @@ TEST_F(BluetoothLowEnergyWinTest, DeviceRegistryPropertyValueAsDWORD) {
memcpy(buffer.get(), &test_value, buffer_size);
scoped_ptr<device::win::DeviceRegistryPropertyValue> value =
device::win::DeviceRegistryPropertyValue::Create(
- REG_DWORD, buffer.Pass(), buffer_size).Pass();
+ REG_DWORD, std::move(buffer), buffer_size);
EXPECT_EQ(test_value, value->AsDWORD());
}
@@ -80,8 +82,8 @@ TEST_F(BluetoothLowEnergyWinTest, DevicePropertyValueAsUint32) {
scoped_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]);
memcpy(buffer.get(), &test_value, buffer_size);
scoped_ptr<device::win::DevicePropertyValue> value(
- new device::win::DevicePropertyValue(
- DEVPROP_TYPE_UINT32, buffer.Pass(), buffer_size));
+ new device::win::DevicePropertyValue(DEVPROP_TYPE_UINT32,
+ std::move(buffer), buffer_size));
EXPECT_EQ(test_value, value->AsUint32());
}
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698