| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/base/filename_util.h" | 5 #include "net/base/filename_util.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 "http://www.google.com/test.html", | 504 "http://www.google.com/test.html", |
| 505 "", | 505 "", |
| 506 "", | 506 "", |
| 507 "", | 507 "", |
| 508 "", | 508 "", |
| 509 L"", | 509 L"", |
| 510 L"test.html" | 510 L"test.html" |
| 511 }, | 511 }, |
| 512 { // Now that we use src/url's ExtractFileName, this case falls back to | 512 { // Now that we use src/url's ExtractFileName, this case falls back to |
| 513 // the hostname. If this behavior is not desirable, we'd better change | 513 // the hostname. If this behavior is not desirable, we'd better change |
| 514 // ExtractFileName (in url_parse). | 514 // ExtractFileName (in url_parse.cc). |
| 515 __LINE__, | 515 __LINE__, |
| 516 "http://www.google.com/path/", | 516 "http://www.google.com/path/", |
| 517 "", | 517 "", |
| 518 "", | 518 "", |
| 519 "", | 519 "", |
| 520 "", | 520 "", |
| 521 L"", | 521 L"", |
| 522 L"www.google.com" | 522 L"www.google.com" |
| 523 }, | 523 }, |
| 524 { | 524 { |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1643 RunGenerateFileNameTestCase(&generation_tests[i]); | 1643 RunGenerateFileNameTestCase(&generation_tests[i]); |
| 1644 | 1644 |
| 1645 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(generation_tests); ++i) { | 1645 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(generation_tests); ++i) { |
| 1646 GenerateFilenameCase test_case = generation_tests[i]; | 1646 GenerateFilenameCase test_case = generation_tests[i]; |
| 1647 test_case.referrer_charset = "GBK"; | 1647 test_case.referrer_charset = "GBK"; |
| 1648 RunGenerateFileNameTestCase(&test_case); | 1648 RunGenerateFileNameTestCase(&test_case); |
| 1649 } | 1649 } |
| 1650 } | 1650 } |
| 1651 | 1651 |
| 1652 } // namespace net | 1652 } // namespace net |
| OLD | NEW |