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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h

Issue 1873683002: Convert //chrome/browser/sync_file_system 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: chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h b/chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h
index e399f12f16a60db11aa26168111870527314c538..dea81d57fc69dd471828b2a11514601e2ab0420f 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h
@@ -7,7 +7,8 @@
#include <stdint.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "chrome/browser/sync_file_system/sync_status_code.h"
#include "google_apis/drive/drive_api_error_codes.h"
@@ -32,15 +33,15 @@ void ExpectEquivalentMetadata(const FileMetadata& left,
void ExpectEquivalentTrackers(const FileTracker& left,
const FileTracker& right);
-scoped_ptr<FileMetadata> CreateFolderMetadata(const std::string& file_id,
- const std::string& title);
-scoped_ptr<FileMetadata> CreateFileMetadata(const std::string& file_id,
- const std::string& title,
- const std::string& md5);
-scoped_ptr<FileTracker> CreateTracker(const FileMetadata& metadata,
- int64_t tracker_id,
- const FileTracker* parent_tracker);
-scoped_ptr<FileTracker> CreatePlaceholderTracker(
+std::unique_ptr<FileMetadata> CreateFolderMetadata(const std::string& file_id,
+ const std::string& title);
+std::unique_ptr<FileMetadata> CreateFileMetadata(const std::string& file_id,
+ const std::string& title,
+ const std::string& md5);
+std::unique_ptr<FileTracker> CreateTracker(const FileMetadata& metadata,
+ int64_t tracker_id,
+ const FileTracker* parent_tracker);
+std::unique_ptr<FileTracker> CreatePlaceholderTracker(
const std::string& file_id,
int64_t tracker_id,
const FileTracker* parent_tracker);

Powered by Google App Engine
This is Rietveld 408576698