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

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

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser and unit tests. Renamed 'UserActed' to 'OpenedOrShown'. Created 4 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
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/test/mock_download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_item.h
diff --git a/content/public/test/mock_download_item.h b/content/public/test/mock_download_item.h
index 6f9f2e2767ab6d9bfa63af0be36306799e7e2fd3..47b62c697119f4f62c9396a743ca0680d7b2d087 100644
--- a/content/public/test/mock_download_item.h
+++ b/content/public/test/mock_download_item.h
@@ -35,6 +35,8 @@ class MockDownloadItem : public DownloadItem {
void NotifyObserversDownloadRemoved();
// Dispatches an OnDownloadUpdated() notification to observers.
void NotifyObserversDownloadUpdated();
+ // Dispatches an OnDownloadShown() notification to observers.
+ void NotifyObserversDownloadShown();
MOCK_METHOD0(UpdateObservers, void());
MOCK_METHOD0(ValidateDangerousDownload, void());
@@ -100,7 +102,6 @@ class MockDownloadItem : public DownloadItem {
MOCK_CONST_METHOD0(GetWebContents, WebContents*());
MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType));
MOCK_METHOD1(SetOpenWhenComplete, void(bool));
- MOCK_METHOD1(SetOpened, void(bool));
MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
MOCK_CONST_METHOD1(DebugString, std::string(bool));
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/test/mock_download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698