| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/net_util.h" | 5 #include "net/base/net_util.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2073 L"foobar.jpg" | 2073 L"foobar.jpg" |
| 2074 }, | 2074 }, |
| 2075 { // http://crbug.com/87719 | 2075 { // http://crbug.com/87719 |
| 2076 "http://www.example.com/image.aspx?id=blargh", | 2076 "http://www.example.com/image.aspx?id=blargh", |
| 2077 "", | 2077 "", |
| 2078 "", | 2078 "", |
| 2079 "", | 2079 "", |
| 2080 "image/jpeg", | 2080 "image/jpeg", |
| 2081 L"download", | 2081 L"download", |
| 2082 L"image" JPEG_EXT | 2082 L"image" JPEG_EXT |
| 2083 } | 2083 }, |
| 2084 #if defined(OS_CHROMEOS) |
| 2085 { // http://crosbug.com/26028 |
| 2086 "http://www.example.com/fooa%cc%88.txt", |
| 2087 "", |
| 2088 "", |
| 2089 "", |
| 2090 "image/jpeg", |
| 2091 L"foo\xe4", |
| 2092 L"foo\xe4.txt" |
| 2093 }, |
| 2094 #endif |
| 2084 }; | 2095 }; |
| 2085 | 2096 |
| 2086 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(selection_tests); ++i) | 2097 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(selection_tests); ++i) |
| 2087 RunGenerateFileNameTestCase(&selection_tests[i], i, "selection"); | 2098 RunGenerateFileNameTestCase(&selection_tests[i], i, "selection"); |
| 2088 | 2099 |
| 2089 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(generation_tests); ++i) | 2100 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(generation_tests); ++i) |
| 2090 RunGenerateFileNameTestCase(&generation_tests[i], i, "generation"); | 2101 RunGenerateFileNameTestCase(&generation_tests[i], i, "generation"); |
| 2091 | 2102 |
| 2092 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(generation_tests); ++i) { | 2103 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(generation_tests); ++i) { |
| 2093 GenerateFilenameCase test_case = generation_tests[i]; | 2104 GenerateFilenameCase test_case = generation_tests[i]; |
| (...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3204 if (it->address[i] != 0) { | 3215 if (it->address[i] != 0) { |
| 3205 all_zeroes = false; | 3216 all_zeroes = false; |
| 3206 break; | 3217 break; |
| 3207 } | 3218 } |
| 3208 } | 3219 } |
| 3209 EXPECT_FALSE(all_zeroes); | 3220 EXPECT_FALSE(all_zeroes); |
| 3210 } | 3221 } |
| 3211 } | 3222 } |
| 3212 | 3223 |
| 3213 } // namespace net | 3224 } // namespace net |
| OLD | NEW |