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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_device_manager_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/cryptauth/cryptauth_device_manager_unittest.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_device_manager_unittest.cc b/components/proximity_auth/cryptauth/cryptauth_device_manager_unittest.cc
index 77e146443fb3598177980a918671e75b242136bc..d5c71218634bdf0d1054a3e81ea591757fe7ac12 100644
--- a/components/proximity_auth/cryptauth/cryptauth_device_manager_unittest.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_device_manager_unittest.cc
@@ -256,8 +256,9 @@ class ProximityAuthCryptAuthDeviceManagerTest
SyncScheduler::Delegate* delegate =
static_cast<SyncScheduler::Delegate*>(device_manager_.get());
- std::unique_ptr<SyncScheduler::SyncRequest> sync_request = base::WrapUnique(
- new SyncScheduler::SyncRequest(device_manager_->GetSyncScheduler()));
+ std::unique_ptr<SyncScheduler::SyncRequest> sync_request =
+ base::MakeUnique<SyncScheduler::SyncRequest>(
+ device_manager_->GetSyncScheduler());
EXPECT_CALL(*this, OnSyncStartedProxy());
delegate->OnSyncRequested(std::move(sync_request));
@@ -353,8 +354,8 @@ TEST_F(ProximityAuthCryptAuthDeviceManagerTest, InitWithDefaultPrefs) {
TestCryptAuthDeviceManager device_manager(
std::move(clock),
- base::WrapUnique(new MockCryptAuthClientFactory(
- MockCryptAuthClientFactory::MockType::MAKE_STRICT_MOCKS)),
+ base::MakeUnique<MockCryptAuthClientFactory>(
+ MockCryptAuthClientFactory::MockType::MAKE_STRICT_MOCKS),
&gcm_manager_, &pref_service);
EXPECT_CALL(

Powered by Google App Engine
This is Rietveld 408576698