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

Unified Diff: chrome/browser/chromeos/drive/download_handler_unittest.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/chromeos/drive/download_handler_unittest.cc
diff --git a/chrome/browser/chromeos/drive/download_handler_unittest.cc b/chrome/browser/chromeos/drive/download_handler_unittest.cc
index 24fc82bf5c7c559bd75d918d596c2edd8f8cf482..6fe5e85fce1354123c4fa9de3cec92280eca9a08 100644
--- a/chrome/browser/chromeos/drive/download_handler_unittest.cc
+++ b/chrome/browser/chromeos/drive/download_handler_unittest.cc
@@ -34,8 +34,9 @@ class DownloadHandlerTestFileSystem : public DummyFileSystem {
// FileSystemInterface overrides.
void GetResourceEntry(const base::FilePath& file_path,
const GetResourceEntryCallback& callback) override {
- callback.Run(error_, scoped_ptr<ResourceEntry>(
- error_ == FILE_ERROR_OK ? new ResourceEntry : NULL));
+ callback.Run(error_, std::unique_ptr<ResourceEntry>(error_ == FILE_ERROR_OK
+ ? new ResourceEntry
+ : NULL));
}
void CreateDirectory(const base::FilePath& directory_path,
@@ -107,10 +108,11 @@ class DownloadHandlerTest : public testing::Test {
base::ScopedTempDir temp_dir_;
content::TestBrowserThreadBundle thread_bundle_;
TestingProfile profile_;
- scoped_ptr<DownloadHandlerTestDownloadManager> download_manager_;
- scoped_ptr<DownloadHandlerTestDownloadManager> incognito_download_manager_;
+ std::unique_ptr<DownloadHandlerTestDownloadManager> download_manager_;
+ std::unique_ptr<DownloadHandlerTestDownloadManager>
+ incognito_download_manager_;
DownloadHandlerTestFileSystem test_file_system_;
- scoped_ptr<DownloadHandler> download_handler_;
+ std::unique_ptr<DownloadHandler> download_handler_;
content::MockDownloadItem download_item_;
};
« no previous file with comments | « chrome/browser/chromeos/drive/download_handler.cc ('k') | chrome/browser/chromeos/drive/drive_file_stream_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698