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

Unified Diff: components/sync/engine_impl/model_type_registry_unittest.cc

Issue 2256733004: 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: components/sync/engine_impl/model_type_registry_unittest.cc
diff --git a/components/sync/engine_impl/model_type_registry_unittest.cc b/components/sync/engine_impl/model_type_registry_unittest.cc
index f5a1b88cd2e44771402363b9f751d751930668cd..405d60b1578b2c2238dac7c883374e72982c94e6 100644
--- a/components/sync/engine_impl/model_type_registry_unittest.cc
+++ b/components/sync/engine_impl/model_type_registry_unittest.cc
@@ -185,14 +185,14 @@ TEST_F(ModelTypeRegistryTest, NonBlockingTypes) {
syncer::THEMES,
MakeActivationContext(
MakeInitialDataTypeState(THEMES),
- base::WrapUnique(new syncer_v2::FakeModelTypeProcessor())));
+ base::MakeUnique<syncer_v2::FakeModelTypeProcessor>()));
EXPECT_EQ(ModelTypeSet(syncer::THEMES), registry()->GetEnabledTypes());
registry()->ConnectType(
syncer::SESSIONS,
MakeActivationContext(
MakeInitialDataTypeState(SESSIONS),
- base::WrapUnique(new syncer_v2::FakeModelTypeProcessor())));
+ base::MakeUnique<syncer_v2::FakeModelTypeProcessor>()));
EXPECT_EQ(ModelTypeSet(syncer::THEMES, syncer::SESSIONS),
registry()->GetEnabledTypes());
@@ -221,7 +221,7 @@ TEST_F(ModelTypeRegistryTest, NonBlockingTypesWithDirectoryTypes) {
syncer::THEMES,
MakeActivationContext(
MakeInitialDataTypeState(THEMES),
- base::WrapUnique(new syncer_v2::FakeModelTypeProcessor())));
+ base::MakeUnique<syncer_v2::FakeModelTypeProcessor>()));
current_types.Put(syncer::THEMES);
EXPECT_EQ(current_types, registry()->GetEnabledTypes());
@@ -235,7 +235,7 @@ TEST_F(ModelTypeRegistryTest, NonBlockingTypesWithDirectoryTypes) {
syncer::SESSIONS,
MakeActivationContext(
MakeInitialDataTypeState(SESSIONS),
- base::WrapUnique(new syncer_v2::FakeModelTypeProcessor())));
+ base::MakeUnique<syncer_v2::FakeModelTypeProcessor>()));
current_types.Put(syncer::SESSIONS);
EXPECT_EQ(current_types, registry()->GetEnabledTypes());
« no previous file with comments | « components/sync/engine_impl/model_type_registry.cc ('k') | components/sync/engine_impl/model_type_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698