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

Unified Diff: components/proximity_auth/messenger_impl_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/messenger_impl_unittest.cc
diff --git a/components/proximity_auth/messenger_impl_unittest.cc b/components/proximity_auth/messenger_impl_unittest.cc
index 1b803bc62bc05e20edb47342680c6da255179bb2..d6f5d885573b727e12c63654092757cb563c1a85 100644
--- a/components/proximity_auth/messenger_impl_unittest.cc
+++ b/components/proximity_auth/messenger_impl_unittest.cc
@@ -63,9 +63,9 @@ class MockMessengerObserver : public MessengerObserver {
class TestMessenger : public MessengerImpl {
public:
TestMessenger()
- : MessengerImpl(base::WrapUnique(new FakeConnection(
- CreateClassicRemoteDeviceForTest())),
- base::WrapUnique(new FakeSecureContext())) {}
+ : MessengerImpl(base::MakeUnique<FakeConnection>(
+ CreateClassicRemoteDeviceForTest()),
+ base::MakeUnique<FakeSecureContext>()) {}
~TestMessenger() override {}
// Simple getters for the mock objects owned by |this| messenger.
« no previous file with comments | « components/proximity_auth/messenger_impl.cc ('k') | components/proximity_auth/remote_device_life_cycle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698