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

Unified Diff: content/browser/download/download_item_impl_unittest.cc

Issue 1418663010: Adding WebContent-free Download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Mock for GetBrowserContext. Created 5 years, 1 month 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: content/browser/download/download_item_impl_unittest.cc
diff --git a/content/browser/download/download_item_impl_unittest.cc b/content/browser/download/download_item_impl_unittest.cc
index 786d90311049b1fac20367975848dbc48aed379b..acc085bd9878b9f781912b8f3cc4c1ff9c90a099 100644
--- a/content/browser/download/download_item_impl_unittest.cc
+++ b/content/browser/download/download_item_impl_unittest.cc
@@ -60,7 +60,9 @@ class MockDelegate : public DownloadItemImplDelegate {
MOCK_METHOD2(MockResumeInterruptedDownload,
void(DownloadUrlParameters* params, uint32 id));
- MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
+ BrowserContext* GetBrowserContext() const override {
+ return NULL;
asanka 2015/11/25 15:53:57 Nit: nullptr for new code.
svaldez 2015/11/25 17:53:28 Done.
+ }
MOCK_METHOD1(UpdatePersistence, void(DownloadItemImpl*));
MOCK_METHOD1(DownloadOpened, void(DownloadItemImpl*));
MOCK_METHOD1(DownloadRemoved, void(DownloadItemImpl*));

Powered by Google App Engine
This is Rietveld 408576698