diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 22:43:37 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 22:43:37 +0000 |
commit | e106457b0288259546ed462ceb39ea27c4820fca (patch) | |
tree | 505892c27216cf9b1ed4d65ef8b736520e1ffd4d /chrome/browser/download/download_manager_unittest.cc | |
parent | 4e9a93461499498077313a3dd30d81ef4797cb49 (diff) | |
download | chromium_src-e106457b0288259546ed462ceb39ea27c4820fca.zip chromium_src-e106457b0288259546ed462ceb39ea27c4820fca.tar.gz chromium_src-e106457b0288259546ed462ceb39ea27c4820fca.tar.bz2 |
Add an exception to DownloadManager::GenerateExtension() for .tar.gz files with mime_type "application/x-tar".
BUG=5772
Review URL: http://codereview.chromium.org/42622
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12509 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_manager_unittest.cc')
-rw-r--r-- | chrome/browser/download/download_manager_unittest.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/download/download_manager_unittest.cc b/chrome/browser/download/download_manager_unittest.cc index f942e48..d3b1506 100644 --- a/chrome/browser/download/download_manager_unittest.cc +++ b/chrome/browser/download/download_manager_unittest.cc @@ -313,6 +313,22 @@ const struct { "image/jpeg", L"download.jpg"}, + // For bug 5772 + {"", + "http://www.example.com/foo.tar.gz", + "application/x-tar", + L"foo.tar.gz"}, + + {"", + "http://www.example.com/bar.tar", + "application/x-tar", + L"bar.tar"}, + + {"", + "http://www.example.com/bar.bogus", + "application/x-tar", + L"bar.bogus.tar"}, + // TODO(darin): Add some raw 8-bit Content-Disposition tests. }; |