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

Unified Diff: sync/api/mock_model_type_store.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: 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/api/mock_model_type_store.h
diff --git a/sync/api/mock_model_type_store.h b/sync/api/mock_model_type_store.h
index 49913d0c7c46b60a92b40c9907180a894e058007..6805ed6b94a00fc5faf0ad20cbf3dc77e15a12e2 100644
--- a/sync/api/mock_model_type_store.h
+++ b/sync/api/mock_model_type_store.h
@@ -24,7 +24,7 @@ namespace syncer_v2 {
// const ModelTypeStore::ReadAllDataCallback& callback) {
// // Verify id_list here.
// // Prepare fake response.
-// scoped_ptr<ModelTypeStore::RecordList> record_list(
+// std::unique_ptr<ModelTypeStore::RecordList> record_list(
// new ModelTypeStore::RecordList);
// record_list->push_back(ModelTypeStore::Record("id1", "value1"));
// base::ThreadTaskRunnerHandle::Get()->PostTask(
@@ -48,7 +48,7 @@ class MockModelTypeStore : public ModelTypeStore {
ReadDataSignature;
typedef base::Callback<void(const ReadMetadataCallback& callback)>
ReadAllMetadataSignature;
- typedef base::Callback<void(scoped_ptr<WriteBatch>, CallbackWithResult)>
+ typedef base::Callback<void(std::unique_ptr<WriteBatch>, CallbackWithResult)>
CommitWriteBatchSignature;
typedef base::Callback<void(WriteBatch*,
const std::string&,
@@ -68,8 +68,8 @@ class MockModelTypeStore : public ModelTypeStore {
void ReadAllData(const ReadAllDataCallback& callback) override;
void ReadAllMetadata(const ReadMetadataCallback& callback) override;
- scoped_ptr<WriteBatch> CreateWriteBatch() override;
- void CommitWriteBatch(scoped_ptr<WriteBatch> write_batch,
+ std::unique_ptr<WriteBatch> CreateWriteBatch() override;
+ void CommitWriteBatch(std::unique_ptr<WriteBatch> write_batch,
const CallbackWithResult& callback) override;
void WriteData(WriteBatch* write_batch,

Powered by Google App Engine
This is Rietveld 408576698