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

Unified Diff: chrome/browser/download/download_test_observer.cc

Issue 8487002: Basic tests for DownloadUrl/DownloadUrlToFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed early setting of info->path to avoid assertion. Created 9 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
Index: chrome/browser/download/download_test_observer.cc
diff --git a/chrome/browser/download/download_test_observer.cc b/chrome/browser/download/download_test_observer.cc
index c60f3746b2b632186f97105b85b88b9ac3cc85dd..e60eb078d50bb6bdf3e949a1c86d4a8df6657549 100644
--- a/chrome/browser/download/download_test_observer.cc
+++ b/chrome/browser/download/download_test_observer.cc
@@ -142,6 +142,9 @@ void DownloadTestObserver::ModelChanged() {
// (done by |OnDownloadUpdated()|).
std::vector<DownloadItem*> downloads;
download_manager_->GetAllDownloads(FilePath(), &downloads);
+ // As a test class, we're generally interested in whatever's there,
+ // so we include temporary downloads.
+ download_manager_->GetTemporaryDownloads(FilePath(), &downloads);
for (std::vector<DownloadItem*>::iterator it = downloads.begin();
it != downloads.end(); ++it) {

Powered by Google App Engine
This is Rietveld 408576698