Index: chrome/browser/net/url_fixer_upper_unittest.cc |
=================================================================== |
--- chrome/browser/net/url_fixer_upper_unittest.cc (revision 10454) |
+++ chrome/browser/net/url_fixer_upper_unittest.cc (working copy) |
@@ -177,6 +177,26 @@ |
{"ftpblah.google.com", "", "http://ftpblah.google.com/"}, |
{"ftp", "", "http://ftp/"}, |
{"google.ftp.com", "", "http://google.ftp.com/"}, |
+ // URLs which end with an ISO-8859 next-line (0x85). |
+ { "http://google.com/search?q=\xd0\x85", "", |
+ "http://google.com/search?q=\xd0\x85" |
+ }, |
+ { "http://google.com/search?q=\xec\x97\x85", "", |
+ "http://google.com/search?q=\xec\x97\x85" |
+ }, |
+ { "http://google.com/search?q=\xf0\x90\x80\x85", "", |
+ "http://google.com/search?q=\xf0\x90\x80\x85" |
+ }, |
+ // URLs which end with a non-break space (0xA0). |
+ { "http://google.com/search?q=\xd0\xa0", "", |
+ "http://google.com/search?q=\xd0\xa0" |
+ }, |
+ { "http://google.com/search?q=\xec\x97\xa0", "", |
+ "http://google.com/search?q=\xec\x97\xa0" |
+ }, |
+ { "http://google.com/search?q=\xf0\x90\x80\xa0", "", |
+ "http://google.com/search?q=\xf0\x90\x80\xa0" |
+ }, |
}; |
TEST(URLFixerUpperTest, FixupURL) { |