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

Unified Diff: components/sync_bookmarks/bookmark_data_type_controller_unittest.cc

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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_bookmarks/bookmark_data_type_controller_unittest.cc
diff --git a/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc b/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
index ad9674376aa54e8e7217150f2b84984883f98619..f9bba73ffd0fb697cab3ff71f6a1ea180c152d12 100644
--- a/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
+++ b/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
@@ -4,10 +4,12 @@
#include "components/sync_bookmarks/bookmark_data_type_controller.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/thread_task_runner_handle.h"
@@ -88,7 +90,7 @@ class SyncBookmarkDataTypeControllerTest : public testing::Test,
void CreateBookmarkModel(BookmarkLoadPolicy bookmark_load_policy) {
bookmark_model_.reset(new BookmarkModel(
- make_scoped_ptr(new bookmarks::TestBookmarkClient())));
+ base::WrapUnique(new bookmarks::TestBookmarkClient())));
if (bookmark_load_policy == LOAD_MODEL) {
TestingPrefServiceSimple prefs;
bookmark_model_->Load(&prefs, base::FilePath(),
@@ -135,9 +137,9 @@ class SyncBookmarkDataTypeControllerTest : public testing::Test,
base::MessageLoop message_loop_;
scoped_refptr<BookmarkDataTypeController> bookmark_dtc_;
- scoped_ptr<SyncApiComponentFactoryMock> profile_sync_factory_;
- scoped_ptr<BookmarkModel> bookmark_model_;
- scoped_ptr<HistoryMock> history_service_;
+ std::unique_ptr<SyncApiComponentFactoryMock> profile_sync_factory_;
+ std::unique_ptr<BookmarkModel> bookmark_model_;
+ std::unique_ptr<HistoryMock> history_service_;
sync_driver::FakeSyncService service_;
ModelAssociatorMock* model_associator_;
ChangeProcessorMock* change_processor_;
« no previous file with comments | « components/sync_bookmarks/bookmark_change_processor.cc ('k') | components/sync_bookmarks/bookmark_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698