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

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

Issue 114193009: [Download] Return DownloadInterruptReason from OnStartedCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/download_test_observer.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/download_test_observer.cc
diff --git a/content/public/test/download_test_observer.cc b/content/public/test/download_test_observer.cc
index adce290c4cd295ba10cb66f24cedb0f99851eded..8ce69b8782794ce0e9a3d15eeef1cb1d3a11c2ba 100644
--- a/content/public/test/download_test_observer.cc
+++ b/content/public/test/download_test_observer.cc
@@ -413,7 +413,7 @@ void DownloadTestFlushObserver::PingIOThread(int cycle) {
DownloadTestItemCreationObserver::DownloadTestItemCreationObserver()
: download_id_(DownloadItem::kInvalidId),
- error_(net::OK),
+ interrupt_reason_(DOWNLOAD_INTERRUPT_REASON_NONE),
called_back_count_(0),
waiting_(false) {
}
@@ -433,12 +433,12 @@ void DownloadTestItemCreationObserver::WaitForDownloadItemCreation() {
void DownloadTestItemCreationObserver::DownloadItemCreationCallback(
DownloadItem* item,
- net::Error error) {
+ DownloadInterruptReason interrupt_reason) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (item)
download_id_ = item->GetId();
- error_ = error;
+ interrupt_reason_ = interrupt_reason;
++called_back_count_;
DCHECK_EQ(1u, called_back_count_);
« no previous file with comments | « content/public/test/download_test_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698