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

Unified Diff: content/public/test/mock_download_manager.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
« no previous file with comments | « content/public/test/mock_blob_url_request_context.cc ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_manager.h
diff --git a/content/public/test/mock_download_manager.h b/content/public/test/mock_download_manager.h
index 148a43f502802710075034f653d526898283b268..3975c0b0c36e13b0d0af8dca5564364f144d62a1 100644
--- a/content/public/test/mock_download_manager.h
+++ b/content/public/test/mock_download_manager.h
@@ -88,8 +88,8 @@ class MockDownloadManager : public DownloadManager {
// Gasket for handling scoped_ptr arguments.
void StartDownload(
- scoped_ptr<DownloadCreateInfo> info,
- scoped_ptr<ByteStreamReader> stream,
+ std::unique_ptr<DownloadCreateInfo> info,
+ std::unique_ptr<ByteStreamReader> stream,
const DownloadUrlParameters::OnStartedCallback& callback) override;
MOCK_METHOD2(MockStartDownload,
@@ -100,7 +100,7 @@ class MockDownloadManager : public DownloadManager {
base::Time remove_end));
MOCK_METHOD0(RemoveAllDownloads, int());
MOCK_METHOD1(DownloadUrlMock, void(DownloadUrlParameters*));
- void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) override {
+ void DownloadUrl(std::unique_ptr<DownloadUrlParameters> params) override {
DownloadUrlMock(params.get());
}
MOCK_METHOD1(AddObserver, void(Observer* observer));
« no previous file with comments | « content/public/test/mock_blob_url_request_context.cc ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698