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

Unified Diff: components/sync/driver/frontend_data_type_controller_unittest.cc

Issue 2422253002: [Sync] Rewriting ".reset(new" pattern to use "= base::MakeUnique" instead. (Closed)
Patch Set: Fixing compile. Created 4 years, 2 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/driver/frontend_data_type_controller_unittest.cc
diff --git a/components/sync/driver/frontend_data_type_controller_unittest.cc b/components/sync/driver/frontend_data_type_controller_unittest.cc
index 53f238fcccd42f63381009068629cb6678277edd..5edde7205c1632d0da9757ce2bed9d1e40b3acb1 100644
--- a/components/sync/driver/frontend_data_type_controller_unittest.cc
+++ b/components/sync/driver/frontend_data_type_controller_unittest.cc
@@ -8,6 +8,7 @@
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "base/location.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
@@ -73,9 +74,9 @@ class SyncFrontendDataTypeControllerTest : public testing::Test {
sync_client_(&components_factory_) {}
void SetUp() override {
- dtc_mock_.reset(new StrictMock<FrontendDataTypeControllerMock>());
- frontend_dtc_.reset(
- new FrontendDataTypeControllerFake(&sync_client_, dtc_mock_.get()));
+ dtc_mock_ = base::MakeUnique<StrictMock<FrontendDataTypeControllerMock>>();
+ frontend_dtc_ = base::MakeUnique<FrontendDataTypeControllerFake>(
+ &sync_client_, dtc_mock_.get());
}
protected:
« no previous file with comments | « components/sync/driver/data_type_manager_impl_unittest.cc ('k') | components/sync/driver/generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698