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; |