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

Unified Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix conflicts 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/internal_api/public/test/fake_sync_manager.h
diff --git a/sync/internal_api/public/test/fake_sync_manager.h b/sync/internal_api/public/test/fake_sync_manager.h
index 0b4c810083f84a175ebecfd89e3b69a14733178b..5a3017e1abbe910767ba7517af86a6307d60ff66 100644
--- a/sync/internal_api/public/test/fake_sync_manager.h
+++ b/sync/internal_api/public/test/fake_sync_manager.h
@@ -90,7 +90,7 @@ class FakeSyncManager : public SyncManager {
const base::Closure& retry_task) override;
void OnIncomingInvalidation(
syncer::ModelType type,
- scoped_ptr<InvalidationInterface> interface) override;
+ std::unique_ptr<InvalidationInterface> interface) override;
void SetInvalidatorEnabled(bool invalidator_enabled) override;
void AddObserver(Observer* observer) override;
void RemoveObserver(Observer* observer) override;
@@ -104,7 +104,7 @@ class FakeSyncManager : public SyncManager {
bool HasUnsyncedItems() override;
SyncEncryptionHandler* GetEncryptionHandler() override;
ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() override;
- scoped_ptr<base::ListValue> GetAllNodesForType(
+ std::unique_ptr<base::ListValue> GetAllNodesForType(
syncer::ModelType type) override;
void RefreshTypes(ModelTypeSet types) override;
void RegisterDirectoryTypeDebugInfoObserver(
@@ -143,7 +143,7 @@ class FakeSyncManager : public SyncManager {
// The most recent configure reason.
ConfigureReason last_configure_reason_;
- scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
+ std::unique_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
TestUserShare test_user_share_;
« no previous file with comments | « sync/internal_api/public/test/fake_sync_context.h ('k') | sync/internal_api/public/test/model_type_store_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698