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

Unified Diff: sync/engine/sync_scheduler_unittest.cc

Issue 1866243002: Convert //sync 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: sync/engine/sync_scheduler_unittest.cc
diff --git a/sync/engine/sync_scheduler_unittest.cc b/sync/engine/sync_scheduler_unittest.cc
index 4d20717f0d56af760959931a7abaa6127165b613..32164b53c5c1f3c15d84713ef096b749bcd510c0 100644
--- a/sync/engine/sync_scheduler_unittest.cc
+++ b/sync/engine/sync_scheduler_unittest.cc
@@ -240,7 +240,7 @@ class SyncSchedulerTest : public testing::Test {
return scheduler_->retry_timer_.GetCurrentDelay();
}
- static scoped_ptr<InvalidationInterface> BuildInvalidation(
+ static std::unique_ptr<InvalidationInterface> BuildInvalidation(
int64_t version,
const std::string& payload) {
return MockInvalidation::Build(version, payload);
@@ -254,10 +254,10 @@ class SyncSchedulerTest : public testing::Test {
base::MessageLoop loop_;
TestDirectorySetterUpper dir_maker_;
CancelationSignal cancelation_signal_;
- scoped_ptr<MockConnectionManager> connection_;
- scoped_ptr<ModelTypeRegistry> model_type_registry_;
- scoped_ptr<SyncSessionContext> context_;
- scoped_ptr<SyncSchedulerImpl> scheduler_;
+ std::unique_ptr<MockConnectionManager> connection_;
+ std::unique_ptr<ModelTypeRegistry> model_type_registry_;
+ std::unique_ptr<SyncSessionContext> context_;
+ std::unique_ptr<SyncSchedulerImpl> scheduler_;
MockNudgeHandler mock_nudge_handler_;
MockSyncer* syncer_;
MockDelayProvider* delay_;

Powered by Google App Engine
This is Rietveld 408576698