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

Unified Diff: chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc

Issue 1865213004: Convert //chrome/browser/ui 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/ui/webui/md_downloads/downloads_list_tracker_unittest.cc
diff --git a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc
index a4296bcf9718e7c5be05c2d374a0acc2c3934203..62df31153f7e2fbb5b50b154baaf0b4a50c14e82 100644
--- a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc
+++ b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc
@@ -7,10 +7,10 @@
#include <limits.h>
#include <stdint.h>
+#include <memory>
#include <vector>
#include "base/files/file_path.h"
-#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "base/time/time.h"
#include "chrome/browser/download/download_item_model.h"
@@ -85,9 +85,9 @@ class TestDownloadsListTracker : public DownloadsListTracker {
using DownloadsListTracker::SetChunkSizeForTesting;
protected:
- scoped_ptr<base::DictionaryValue> CreateDownloadItemValue(
+ std::unique_ptr<base::DictionaryValue> CreateDownloadItemValue(
content::DownloadItem* item) const override {
- scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue);
CHECK_LE(item->GetId(), static_cast<uint64_t>(INT_MAX));
dict->SetInteger("id", item->GetId());
return dict;
@@ -148,7 +148,7 @@ class DownloadsListTrackerTest : public testing::Test {
testing::NiceMock<content::MockDownloadManager> manager_;
content::TestWebUI web_ui_;
- scoped_ptr<TestDownloadsListTracker> tracker_;
+ std::unique_ptr<TestDownloadsListTracker> tracker_;
std::vector<MockDownloadItem*> mock_items_;
};
« no previous file with comments | « chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc ('k') | chrome/browser/ui/webui/media/webrtc_logs_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698