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

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

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed signed/unsigned compare issue. Created 8 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/common/content_switches.cc ('k') | content/public/test/mock_download_manager.h » ('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 d205ba8d805a9852482068fb6eec0a2f6c420669..7fe6a5786b761d8d0902a0788a211c043ff36834 100644
--- a/content/public/test/mock_download_item.h
+++ b/content/public/test/mock_download_item.h
@@ -34,6 +34,7 @@ class MockDownloadItem : public DownloadItem {
MOCK_CONST_METHOD0(GetState, DownloadState());
MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
MOCK_CONST_METHOD0(IsPaused, bool());
+ MOCK_CONST_METHOD0(CanResumeInterrupted, bool());
MOCK_CONST_METHOD0(IsTemporary, bool());
MOCK_CONST_METHOD0(IsPartialDownload, bool());
MOCK_CONST_METHOD0(IsInProgress, bool());
@@ -77,6 +78,7 @@ class MockDownloadItem : public DownloadItem {
MOCK_CONST_METHOD0(GetEndTime, base::Time());
MOCK_METHOD0(CanShowInFolder, bool());
MOCK_METHOD0(CanOpenDownload, bool());
+ MOCK_CONST_METHOD0(CanResumeDownload, bool());
MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool());
MOCK_CONST_METHOD0(GetOpenWhenComplete, bool());
MOCK_METHOD0(GetAutoOpened, bool());
@@ -88,6 +90,7 @@ class MockDownloadItem : public DownloadItem {
MOCK_METHOD1(SetIsTemporary, void(bool));
MOCK_METHOD1(SetOpened, void(bool));
MOCK_METHOD1(SetDisplayName, void(const FilePath&));
+ MOCK_CONST_METHOD0(GetBoundNetLog, const net::BoundNetLog&());
MOCK_CONST_METHOD1(DebugString, std::string(bool));
MOCK_METHOD0(MockDownloadOpenForTesting, void());
};
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698