Lines Matching defs:file
3 // found in the LICENSE file.
215 // the select file dialog comes up.
218 // True if we've seen the select file dialog.
227 // * There have been two round trip messages through the file and
308 BrowserThread::FILE, FROM_HERE,
341 // Collect the information from FILE and IO threads needed for the Cancel
376 BrowserThread::FILE, FROM_HERE,
437 // Location of the file source (the place from which it is downloaded).
438 FilePath OriginFile(FilePath file) {
439 return test_dir_.Append(file);
442 // Location of the file destination (place to which it is downloaded).
443 file) {
444 return GetDownloadDirectory(browser).Append(file);
479 true); // Bail on select file
491 true); // Bail on select file
497 // |expectation| indicates whether or not a Select File dialog should be
519 // If specified, check the state of the select file dialog.
526 // Download a file in the current tab, then wait for the download to finish.
555 // Confirm the downloaded data file exists.
568 // Delete the downloaded copy of the file.
639 // Delete the file we just downloaded.
740 // Mock responses have extension .mock-http-headers appended to the file name.
742 // Download a file due to the associated MIME type.
745 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
746 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
748 // Download the file and wait. We do not expect the Select File dialog.
753 CheckDownload(browser(), file, file);
758 // Download a file and confirm that the zone identifier (on windows)
762 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
763 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
765 // Download the file and wait. We do not expect the Select File dialog.
768 // Check state. Special file state must be checked before CheckDownload,
769 // as CheckDownload will delete the output file.
771 FilePath downloaded_file(DestinationFile(browser(), file));
774 CheckDownload(browser(), file, file);
779 // Put up a Select File dialog when the file is downloaded, due to its MIME
784 // was primarily confirming DownloadsObserver wait on select file dialog
788 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
789 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
791 // Download the file and wait. We expect the Select File dialog to appear
797 // Since we exited while the Select File dialog was visible, there should not
802 // Access a file with a viewable mime-type, verify that a download
806 FilePath file(FILE_PATH_LITERAL("download-test2.html"));
807 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
808 FilePath file_path(DestinationFile(browser(), file));
821 // Download a 0-size file with a content-disposition header, verify that the
822 // download tab opened and the file exists as the filename specified in the
823 // header. This also ensures we properly handle empty file downloads.
827 FilePath file(FILE_PATH_LITERAL("download-test3.gif"));
828 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
831 // Download a file and wait.
834 CheckDownload(browser(), download_file, file);
847 FilePath file(FILE_PATH_LITERAL("download-test3.gif"));
848 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
851 // Download a file and wait.
854 CheckDownload(browser(), download_file, file);
882 // The test will first attempt to download a file; but the server will "pause"
910 // Download a file in the Incognito window and wait.
912 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
913 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
949 CheckDownload(browser(), file, file);
973 // Download a file in a background tab. Verify that the tab is closed
978 // Download a file in a new background tab and wait. The tab is automatically
980 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
981 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
993 CheckDownload(browser(), file, file);
996 // Open a web page in the current tab, then download a file in another tab via
1013 // Download a file in a new tab and wait (via Javascript).
1014 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1025 CheckDownload(browser(), file, file);
1029 // then download a file in the new tab.
1054 // Download a file and wait.
1055 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1056 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
1067 CheckDownload(browser(), file, file);
1070 // Open a web page in the current tab, then download a file via Javascript,
1087 // Download a file and wait.
1088 // The file to download is "download-test1.lib".
1089 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1100 CheckDownload(browser(), file, file);
1104 // download a file in a new tab, which is closed automatically when the
1120 // Download a file in a new tab and wait. The tab will automatically close
1122 // The file to download is "download-test1.lib".
1123 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1135 CheckDownload(browser(), file, file);
1138 // Download a file in a new window.
1147 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1148 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
1154 // Download a file in a new window and wait.
1204 CheckDownload(browser(), file, file);
1257 // Except under ChromeOS in which case if we've brought up the file
1268 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1269 GURL url(URLRequestMockHTTPJob::GetMockUrl(file));
1270 FilePath origin_file(OriginFile(file));
1274 // Download the file and wait. We do not expect the Select File dialog.
1285 CheckDownload(browser(), file, file
1294 EXPECT_EQ(file, info.path.BaseName());