Chromium Code Reviews| Index: chrome/browser/net/url_fixer_upper_unittest.cc |
| =================================================================== |
| --- chrome/browser/net/url_fixer_upper_unittest.cc (revision 95185) |
| +++ chrome/browser/net/url_fixer_upper_unittest.cc (working copy) |
| @@ -516,4 +516,11 @@ |
| // done with the subdir |
| EXPECT_TRUE(file_util::Delete(full_path, false)); |
| EXPECT_TRUE(file_util::Delete(new_dir, true)); |
| + |
| + // test than an obvious HTTP URL isn't accidentally treated as an absolute |
|
jar (doing other things)
2011/08/06 02:33:28
nit: Comments should be sentences, starting with u
|
| + // file path (on account of system-specific craziness) |
| + FilePath empty_path; |
| + FilePath http_url_path(FILE_PATH_LITERAL("http://../")); |
| + EXPECT_TRUE(URLFixerUpper::FixupRelativeFile( |
| + empty_path, http_url_path).SchemeIs("http")); |
| } |