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

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest.cc

Issue 2254833003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
Index: device/bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest.cc
diff --git a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest.cc b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest.cc
index fecb8fe5792bb147b53664fefa475f15baab41ae..da236c3fa162efe1c2030d587e8f9f6f42c6c467 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest.cc
+++ b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest.cc
@@ -293,9 +293,9 @@ class BluetoothGattApplicationServiceProviderTest : public testing::Test {
const std::string& full_service_path =
std::string(kAppObjectPath) + "/" + service_path;
app_provider->service_providers_.push_back(
- base::WrapUnique(new BluetoothGattServiceServiceProviderImpl(
+ base::MakeUnique<BluetoothGattServiceServiceProviderImpl>(
nullptr, dbus::ObjectPath(full_service_path), kFakeServiceUuid,
- true, std::vector<dbus::ObjectPath>())));
+ true, std::vector<dbus::ObjectPath>()));
return full_service_path;
}
@@ -350,9 +350,9 @@ class BluetoothGattApplicationServiceProviderTest : public testing::Test {
TEST_F(BluetoothGattApplicationServiceProviderTest, GetManagedObjects) {
std::unique_ptr<BluetoothGattApplicationServiceProviderImpl> app_provider =
- base::WrapUnique(new BluetoothGattApplicationServiceProviderImpl(
+ base::MakeUnique<BluetoothGattApplicationServiceProviderImpl>(
nullptr, dbus::ObjectPath(kAppObjectPath),
- std::map<dbus::ObjectPath, BluetoothLocalGattServiceBlueZ*>()));
+ std::map<dbus::ObjectPath, BluetoothLocalGattServiceBlueZ*>());
CreateFakeAttributes(app_provider.get());
dbus::MethodCall method_call("com.example.Interface", "SomeMethod");
@@ -364,9 +364,9 @@ TEST_F(BluetoothGattApplicationServiceProviderTest, GetManagedObjects) {
TEST_F(BluetoothGattApplicationServiceProviderTest, SendValueChanged) {
std::unique_ptr<BluetoothGattApplicationServiceProviderImpl> app_provider =
- base::WrapUnique(new BluetoothGattApplicationServiceProviderImpl(
+ base::MakeUnique<BluetoothGattApplicationServiceProviderImpl>(
nullptr, dbus::ObjectPath(kAppObjectPath),
- std::map<dbus::ObjectPath, BluetoothLocalGattServiceBlueZ*>()));
+ std::map<dbus::ObjectPath, BluetoothLocalGattServiceBlueZ*>());
const std::string& kServicePath =
CreateFakeService(app_provider.get(), "service0");
const std::string& kCharacteristicPath = CreateFakeCharacteristic(

Powered by Google App Engine
This is Rietveld 408576698