diff options
author | rolandsteiner@chromium.org <rolandsteiner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 04:18:58 +0000 |
---|---|---|
committer | rolandsteiner@chromium.org <rolandsteiner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 04:18:58 +0000 |
commit | fcb7fd9e3fb31998c9055c63a6b99024e97f211e (patch) | |
tree | 9bd2297b3a58e4e345d17f868f0cc7072b1ef3bc /net/base/net_util_unittest.cc | |
parent | 204758c792daa561ccf691ecd101e6360540360f (diff) | |
download | chromium_src-fcb7fd9e3fb31998c9055c63a6b99024e97f211e.zip chromium_src-fcb7fd9e3fb31998c9055c63a6b99024e97f211e.tar.gz chromium_src-fcb7fd9e3fb31998c9055c63a6b99024e97f211e.tar.bz2 |
Moved patch from 297003 over to committer repository.
Review: http://codereview.chromium.org/297003
BUG=24846
TEST=URLRequestTest.DataURLImageTest, NetUtilTest.GetSuggestedFilename
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util_unittest.cc')
-rw-r--r-- | net/base/net_util_unittest.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/base/net_util_unittest.cc b/net/base/net_util_unittest.cc index 22d467c..eddbd16 100644 --- a/net/base/net_util_unittest.cc +++ b/net/base/net_util_unittest.cc @@ -972,6 +972,22 @@ TEST(NetUtilTest, GetSuggestedFilename) { "", L"", L"test.html"}, + // about: and data: URLs + {"about:chrome", + "", + "", + L"", + L"download"}, + {"data:,looks/like/a.path", + "", + "", + L"", + L"download"}, + {"data:text/plain;base64,VG8gYmUgb3Igbm90IHRvIGJlLg=", + "", + "", + L"", + L"download"}, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) { std::wstring filename = net::GetSuggestedFilename( |