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

Unified Diff: chrome/browser/download/download_shelf_unittest.cc

Issue 15701007: BrowserContext should simply own DownloadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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/download/download_shelf_unittest.cc
diff --git a/chrome/browser/download/download_shelf_unittest.cc b/chrome/browser/download/download_shelf_unittest.cc
index 48045c4d1cea9a3dccc6179a9fd1ab81521cc64b..a43204e4172eab448dec1612866283fe9f883a52 100644
--- a/chrome/browser/download/download_shelf_unittest.cc
+++ b/chrome/browser/download/download_shelf_unittest.cc
@@ -43,7 +43,7 @@ class DownloadShelfTest : public testing::Test {
MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
scoped_ptr<content::MockDownloadItem> download_item_;
- scoped_refptr<content::MockDownloadManager> download_manager_;
+ scoped_ptr<content::MockDownloadManager> download_manager_;
TestDownloadShelf shelf_;
};
@@ -63,7 +63,8 @@ DownloadShelfTest::DownloadShelfTest()
ON_CALL(*download_item_, ShouldOpenFileBasedOnExtension())
.WillByDefault(Return(false));
- download_manager_ = new ::testing::NiceMock<content::MockDownloadManager>();
+ download_manager_.reset(
+ new ::testing::NiceMock<content::MockDownloadManager>());
ON_CALL(*download_manager_, GetDownload(_))
.WillByDefault(Return(download_item_.get()));

Powered by Google App Engine
This is Rietveld 408576698