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

Unified Diff: chrome/browser/url_fixer_upper_unittest.cc

Issue 16511: If the URL text has no scheme, and starts with ftp., then ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « chrome/browser/url_fixer_upper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/url_fixer_upper_unittest.cc
===================================================================
--- chrome/browser/url_fixer_upper_unittest.cc (revision 7653)
+++ chrome/browser/url_fixer_upper_unittest.cc (working copy)
@@ -173,6 +173,12 @@
// a clean way to guess this isn't the new-and-exciting "user" scheme.
{L"user:passwd@www.google.com:8080/", L"", L"user:passwd@www.google.com:8080/"},
//{L"file:///c:/foo/bar%20baz.txt", L"", L"file:///C:/foo/bar%20baz.txt"},
+ {L"ftp.google.com", L"", L"ftp://ftp.google.com/"},
+ {L" ftp.google.com", L"", L"ftp://ftp.google.com/"},
+ {L"FTP.GooGle.com", L"", L"ftp://FTP.GooGle.com/"},
+ {L"ftpblah.google.com", L"", L"http://ftpblah.google.com/"},
+ {L"ftp", L"", L"http://ftp/"},
+ {L"google.ftp.com", L"", L"http://google.ftp.com/"},
};
TEST(URLFixerUpperTest, FixupURL) {
« no previous file with comments | « chrome/browser/url_fixer_upper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698