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

Unified Diff: components/proximity_auth/device_to_device_authenticator_unittest.cc

Issue 2250023005: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: components/proximity_auth/device_to_device_authenticator_unittest.cc
diff --git a/components/proximity_auth/device_to_device_authenticator_unittest.cc b/components/proximity_auth/device_to_device_authenticator_unittest.cc
index ef8d8125a316454242ed3bb9e562e9c61a50aa2c..28d2d693e625b5e641781168e408af087266f8e2 100644
--- a/components/proximity_auth/device_to_device_authenticator_unittest.cc
+++ b/components/proximity_auth/device_to_device_authenticator_unittest.cc
@@ -341,10 +341,10 @@ TEST_F(ProximityAuthDeviceToDeviceAuthenticatorTest,
// completes.
WireMessage wire_message(base::RandBytesAsString(300u));
connection_.SendMessage(
- base::WrapUnique(new WireMessage(base::RandBytesAsString(300u))));
+ base::MakeUnique<WireMessage>(base::RandBytesAsString(300u)));
connection_.OnBytesReceived(wire_message.Serialize());
connection_.SendMessage(
- base::WrapUnique(new WireMessage(base::RandBytesAsString(300u))));
+ base::MakeUnique<WireMessage>(base::RandBytesAsString(300u)));
connection_.OnBytesReceived(wire_message.Serialize());
}

Powered by Google App Engine
This is Rietveld 408576698