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

Unified Diff: net/base/net_util_unittest.cc

Issue 7607013: Call GenerateSafeFilename() from GetSuggestedFilename(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 4 months 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
« no previous file with comments | « net/base/net_util.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util_unittest.cc
diff --git a/net/base/net_util_unittest.cc b/net/base/net_util_unittest.cc
index fe1805903626839dbd8548236910c6d94d1991aa..938a70a6e02a2e1d70acb87ae7fd66797f5cff89 100644
--- a/net/base/net_util_unittest.cc
+++ b/net/base/net_util_unittest.cc
@@ -1405,15 +1405,14 @@ TEST(NetUtilTest, GenerateFileName) {
L"default",
L"default"
},
- { // C-D specified filename disappears. Should use last component of URL
- // instead.
+ { // C-D specified filename disappears. Failover to final filename.
"http://www.google.com/test.html",
"Content-disposition: attachment; filename=\"..\"",
"",
"",
"",
- L"download",
- L"test.html"
+ L"default",
+ L"default"
},
// Below is a small subset of cases taken from GetFileNameFromCD test above.
{
« no previous file with comments | « net/base/net_util.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698