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

Unified Diff: sync/internal_api/attachments/attachment_downloader_impl_unittest.cc

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/internal_api/attachments/attachment_downloader_impl_unittest.cc
diff --git a/sync/internal_api/attachments/attachment_downloader_impl_unittest.cc b/sync/internal_api/attachments/attachment_downloader_impl_unittest.cc
index a2cb0b909ff300e94709e51b9ba7486f45a73116..74a0fab103d3a04c1ae00d332dc0700d1199fd5c 100644
--- a/sync/internal_api/attachments/attachment_downloader_impl_unittest.cc
+++ b/sync/internal_api/attachments/attachment_downloader_impl_unittest.cc
@@ -186,7 +186,7 @@ class AttachmentDownloaderImplTest : public testing::Test {
void DownloadDone(const AttachmentId& attachment_id,
const AttachmentDownloader::DownloadResult& result,
- scoped_ptr<Attachment> attachment);
+ std::unique_ptr<Attachment> attachment);
void VerifyDownloadResult(const AttachmentId& attachment_id,
const AttachmentDownloader::DownloadResult& result);
@@ -200,8 +200,8 @@ class AttachmentDownloaderImplTest : public testing::Test {
base::MessageLoopForIO message_loop_;
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
net::TestURLFetcherFactory url_fetcher_factory_;
- scoped_ptr<MockOAuth2TokenService> token_service_;
- scoped_ptr<AttachmentDownloader> attachment_downloader_;
+ std::unique_ptr<MockOAuth2TokenService> token_service_;
+ std::unique_ptr<AttachmentDownloader> attachment_downloader_;
ResultsMap download_results_;
int num_completed_downloads_;
const AttachmentId attachment_id_;
@@ -253,7 +253,7 @@ void AttachmentDownloaderImplTest::CompleteDownload(
void AttachmentDownloaderImplTest::DownloadDone(
const AttachmentId& attachment_id,
const AttachmentDownloader::DownloadResult& result,
- scoped_ptr<Attachment> attachment) {
+ std::unique_ptr<Attachment> attachment) {
download_results_.insert(std::make_pair(attachment_id, result));
if (result == AttachmentDownloader::DOWNLOAD_SUCCESS) {
// Successful download should be accompanied by valid attachment with

Powered by Google App Engine
This is Rietveld 408576698