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

Unified Diff: content/public/test/fake_download_item.cc

Issue 2753583002: Add the JobComplete callback and error/interrupt information (Closed)
Patch Set: added argument name Created 3 years, 9 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
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/fake_download_item.cc
diff --git a/content/public/test/fake_download_item.cc b/content/public/test/fake_download_item.cc
index a415a08bb23f6151f40ca7cb29cff91f959abb86..4bb1e706a32fb2985eba9f1d06c30c4d19423b5d 100644
--- a/content/public/test/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -69,6 +69,14 @@ const GURL& FakeDownloadItem::GetURL() const {
return url_;
}
+void FakeDownloadItem::SetLastReason(DownloadInterruptReason last_reason) {
+ last_reason_ = last_reason;
+}
+
+DownloadInterruptReason FakeDownloadItem::GetLastReason() const {
+ return last_reason_;
+}
+
void FakeDownloadItem::SetTargetFilePath(const base::FilePath& file_path) {
file_path_ = file_path;
}
@@ -162,11 +170,6 @@ void FakeDownloadItem::ShowDownloadInShell() {
NOTREACHED();
}
-DownloadInterruptReason FakeDownloadItem::GetLastReason() const {
- NOTREACHED();
- return DownloadInterruptReason();
-}
-
bool FakeDownloadItem::IsPaused() const {
NOTREACHED();
return false;
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698