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

Unified Diff: components/sync_driver/glue/ui_model_worker_unittest.cc

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback 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_driver/glue/ui_model_worker_unittest.cc
diff --git a/components/sync_driver/glue/ui_model_worker_unittest.cc b/components/sync_driver/glue/ui_model_worker_unittest.cc
index 3fde2328ce3a087d037dd5b7142cdbf0a93f4969..d5f04bdb0ddb1cfe13b9461be0b5040587a765d2 100644
--- a/components/sync_driver/glue/ui_model_worker_unittest.cc
+++ b/components/sync_driver/glue/ui_model_worker_unittest.cc
@@ -4,13 +4,14 @@
#include "components/sync_driver/glue/ui_model_worker.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "base/location.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "base/thread_task_runner_handle.h"
@@ -78,12 +79,12 @@ class SyncUIModelWorkerTest : public testing::Test {
base::Thread faux_syncer_thread_;
base::Thread faux_core_thread_;
scoped_refptr<UIModelWorker> bmw_;
- scoped_ptr<Syncer> syncer_;
+ std::unique_ptr<Syncer> syncer_;
};
TEST_F(SyncUIModelWorkerTest, ScheduledWorkRunsOnUILoop) {
base::WaitableEvent v_was_run(false, false);
- scoped_ptr<UIModelWorkerVisitor> v(
+ std::unique_ptr<UIModelWorkerVisitor> v(
new UIModelWorkerVisitor(&v_was_run, true));
syncer_thread()->task_runner()->PostTask(
« no previous file with comments | « components/sync_driver/glue/sync_backend_registrar_unittest.cc ('k') | components/sync_driver/local_device_info_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698