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

Unified Diff: device/bluetooth/bluetooth_advertisement_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
« no previous file with comments | « device/bluetooth/bluetooth_advertisement_bluez.cc ('k') | device/bluetooth/bluetooth_bluez_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_advertisement_bluez_unittest.cc
diff --git a/device/bluetooth/bluetooth_advertisement_bluez_unittest.cc b/device/bluetooth/bluetooth_advertisement_bluez_unittest.cc
index b3a67020a135ea644c49942c2f6a619f23989daf..ea933fcbce674781ca440934a44bba2e45bcd432 100644
--- a/device/bluetooth/bluetooth_advertisement_bluez_unittest.cc
+++ b/device/bluetooth/bluetooth_advertisement_bluez_unittest.cc
@@ -93,14 +93,14 @@ class BluetoothAdvertisementBlueZTest : public testing::Test {
make_scoped_ptr(new BluetoothAdvertisement::Data(
BluetoothAdvertisement::ADVERTISEMENT_TYPE_BROADCAST));
data->set_service_uuids(
- make_scoped_ptr(new BluetoothAdvertisement::UUIDList()).Pass());
+ make_scoped_ptr(new BluetoothAdvertisement::UUIDList()));
data->set_manufacturer_data(
- make_scoped_ptr(new BluetoothAdvertisement::ManufacturerData()).Pass());
+ make_scoped_ptr(new BluetoothAdvertisement::ManufacturerData()));
data->set_solicit_uuids(
- make_scoped_ptr(new BluetoothAdvertisement::UUIDList()).Pass());
+ make_scoped_ptr(new BluetoothAdvertisement::UUIDList()));
data->set_service_data(
- make_scoped_ptr(new BluetoothAdvertisement::ServiceData()).Pass());
- return data.Pass();
+ make_scoped_ptr(new BluetoothAdvertisement::ServiceData()));
+ return data;
}
// Creates and registers an advertisement with the adapter.
@@ -109,7 +109,7 @@ class BluetoothAdvertisementBlueZTest : public testing::Test {
advertisement_ = nullptr;
adapter_->RegisterAdvertisement(
- CreateAdvertisementData().Pass(),
+ CreateAdvertisementData(),
base::Bind(&BluetoothAdvertisementBlueZTest::RegisterCallback,
base::Unretained(this)),
base::Bind(&BluetoothAdvertisementBlueZTest::AdvertisementErrorCallback,
« no previous file with comments | « device/bluetooth/bluetooth_advertisement_bluez.cc ('k') | device/bluetooth/bluetooth_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698