Home | History | Annotate | Download | only in download

Lines Matching refs:downloads

114     std::vector<DownloadItem*> downloads;
115 manager_->GetAllDownloads(&downloads);
116 if (!downloads.empty())
534 // directory for downloads that is auto-deleted on destruction.
564 // specified number of downloads to finish.
574 // specified number of downloads to start.
583 // specified number of downloads to finish, or for
809 void GetDownloads(Browser* browser, std::vector<DownloadItem*>* downloads) {
810 DCHECK(downloads);
812 manager->GetAllDownloads(downloads);
884 std::string server_path = "files/downloads/";
1040 std::string server_path = "files/downloads/";
1103 content::DownloadManager::DownloadVector downloads;
1104 DownloadManagerForBrowser(browser())->GetAllDownloads(&downloads);
1105 EXPECT_EQ(1u, downloads.size());
1107 if (downloads.size() != 1)
1112 DownloadItem* download = downloads[0];
1129 // Location of the downloads directory for these tests
1177 // downloads preferences settings.
1264 // download never makes it to the downloads system.
1278 // Disable downloads for the tab.
1320 // header. This also ensures we properly handle empty file downloads.
1375 // Check whether the downloads shelf is closed when the downloads tab is
1388 // Open the downloads tab.
1468 GURL url(test_server()->GetURL("files/downloads/a_zip_file.zip"));
1473 "downloads/a_zip_file.zip"))));
1578 // tab and then downloads download-test1.lib.
1862 base::FilePath file(FILE_PATH_LITERAL("downloads/dangerous/dangerous.swf"));
1895 std::vector<DownloadItem*> downloads;
1896 DownloadManagerForBrowser(browser())->GetAllDownloads(&downloads);
1897 ASSERT_EQ(1u, downloads.size());
1898 downloads[0]->ValidateDangerousDownload();
1943 std::vector<DownloadItem*> downloads;
1950 manager->GetAllDownloads(&downloads);
1951 ASSERT_EQ(1UL, downloads.size());
1952 DownloadItem* item = downloads[0];
2047 std::vector<DownloadItem*> downloads;
2048 DownloadManagerForBrowser(browser())->GetAllDownloads(&downloads);
2049 ASSERT_EQ(1u, downloads.size());
2050 EXPECT_EQ(DownloadItem::COMPLETE, downloads[0]->GetState());
2055 downloads[0], base::Bind(&WasAutoOpened)).WaitForEvent();
2056 EXPECT_TRUE(downloads[0]->GetOpened()); // Confirm it anyway.
2118 content::DownloadManager::DownloadVector downloads;
2119 DownloadManagerForBrowser(browser())->GetAllDownloads(&downloads);
2120 ASSERT_EQ(1u, downloads.size());
2122 downloads[0], base::Bind(&WasAutoOpened)).WaitForEvent();
2155 content::DownloadManager::DownloadVector downloads;
2156 DownloadManagerForBrowser(browser())->GetAllDownloads(&downloads);
2157 ASSERT_EQ(1u, downloads.size());
2159 downloads[0], base::Bind(&WasAutoOpened)).WaitForEvent();
2217 content::DownloadManager::DownloadVector downloads;
2218 DownloadManagerForBrowser(browser())->GetAllDownloads(&downloads);
2219 ASSERT_EQ(1u, downloads.size());
2221 downloads[0], base::Bind(&WasAutoOpened)).WaitForEvent();
2289 std::vector<DownloadItem*> downloads;
2290 DownloadManagerForBrowser(browser())->GetAllDownloads(&downloads);
2291 ASSERT_EQ(1u, downloads.size());
2293 downloads[0], base::Bind(&WasAutoOpened)).WaitForEvent();
2308 GURL url = test_server()->GetURL("files/downloads/image.jpg");
2369 "files/downloads/form_page_to_post.html");
2376 GURL jpeg_url = test_server()->GetURL("files/post/downloads/image.jpg");
2687 // Test that we show a dangerous downloads warning for a dangerous file
2701 std::string path("files/downloads/download-dangerous-blob.html?filename=");
2729 GURL url = test_server()->GetURL("files/downloads/referrer_policy.html");
2792 // Verify the multiple downloads infobar.
2802 // Create a downloads observer.
2812 test_server()->GetURL("files/downloads/download-a_zip_file.html"));
2829 // Click on the "Allow" button to allow multiple downloads.
2843 GURL url(test_server()->GetURL("files/downloads/a_zip_file.zip"));
2846 "downloads/a_zip_file.zip"))));
2945 GURL url(test_server()->GetURL("files/downloads/a_zip_file.zip"));
2968 FILE_PATH_LITERAL("downloads/a_zip_file.zip")))));
3066 GURL url(test_server()->GetURL("files/downloads/dangerous/dangerous.crx"));