| 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 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 }, | 1172 }, |
| 1173 { // C-D specified filename disappears. Failover to final filename. | 1173 { // C-D specified filename disappears. Failover to final filename. |
| 1174 "http://www.google.com/test.html", | 1174 "http://www.google.com/test.html", |
| 1175 "attachment; filename=\"..\"", | 1175 "attachment; filename=\"..\"", |
| 1176 "", | 1176 "", |
| 1177 "", | 1177 "", |
| 1178 "", | 1178 "", |
| 1179 L"default", | 1179 L"default", |
| 1180 L"default" | 1180 L"default" |
| 1181 }, | 1181 }, |
| 1182 // Below is a small subset of cases taken from GetFileNameFromCD test above. | 1182 // Below is a small subset of cases taken from HttpContentDisposition tests. |
| 1183 { | 1183 { |
| 1184 "http://www.google.com/", | 1184 "http://www.google.com/", |
| 1185 "attachment; filename=\"%EC%98%88%EC%88%A0%20" | 1185 "attachment; filename=\"%EC%98%88%EC%88%A0%20" |
| 1186 "%EC%98%88%EC%88%A0.jpg\"", | 1186 "%EC%98%88%EC%88%A0.jpg\"", |
| 1187 "", | 1187 "", |
| 1188 "", | 1188 "", |
| 1189 "", | 1189 "", |
| 1190 L"", | 1190 L"", |
| 1191 L"\uc608\uc220 \uc608\uc220.jpg" | 1191 L"\uc608\uc220 \uc608\uc220.jpg" |
| 1192 }, | 1192 }, |
| (...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3264 if (it->address[i] != 0) { | 3264 if (it->address[i] != 0) { |
| 3265 all_zeroes = false; | 3265 all_zeroes = false; |
| 3266 break; | 3266 break; |
| 3267 } | 3267 } |
| 3268 } | 3268 } |
| 3269 EXPECT_FALSE(all_zeroes); | 3269 EXPECT_FALSE(all_zeroes); |
| 3270 } | 3270 } |
| 3271 } | 3271 } |
| 3272 | 3272 |
| 3273 } // namespace net | 3273 } // namespace net |
| OLD | NEW |