| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2282 "", | 2282 "", |
| 2283 "application/x-sh", | 2283 "application/x-sh", |
| 2284 L"download", | 2284 L"download", |
| 2285 L"bar.sh" | 2285 L"bar.sh" |
| 2286 }, | 2286 }, |
| 2287 { // http://crbug.com/61571 | 2287 { // http://crbug.com/61571 |
| 2288 "http://www.example.com/npdf.php?fn=foobar.pdf", | 2288 "http://www.example.com/npdf.php?fn=foobar.pdf", |
| 2289 "", | 2289 "", |
| 2290 "", | 2290 "", |
| 2291 "", | 2291 "", |
| 2292 "application/pdf", | 2292 "text/plain", |
| 2293 L"download", | 2293 L"download", |
| 2294 L"npdf.pdf" | 2294 L"npdf" TXT_EXT |
| 2295 }, | 2295 }, |
| 2296 { // Shouldn't overwrite C-D specified extension. | 2296 { // Shouldn't overwrite C-D specified extension. |
| 2297 "http://www.example.com/npdf.php?fn=foobar.pdf", | 2297 "http://www.example.com/npdf.php?fn=foobar.pdf", |
| 2298 "Content-Disposition: filename=foobar.jpg", | 2298 "Content-Disposition: filename=foobar.jpg", |
| 2299 "", | 2299 "", |
| 2300 "", | 2300 "", |
| 2301 "application/pdf", | 2301 "text/plain", |
| 2302 L"download", | 2302 L"download", |
| 2303 L"foobar.jpg" | 2303 L"foobar.jpg" |
| 2304 }, | 2304 }, |
| 2305 { // http://crbug.com/87719 | 2305 { // http://crbug.com/87719 |
| 2306 "http://www.example.com/image.aspx?id=blargh", | 2306 "http://www.example.com/image.aspx?id=blargh", |
| 2307 "", | 2307 "", |
| 2308 "", | 2308 "", |
| 2309 "", | 2309 "", |
| 2310 "image/jpeg", | 2310 "image/jpeg", |
| 2311 L"download", | 2311 L"download", |
| (...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3434 if (it->address[i] != 0) { | 3434 if (it->address[i] != 0) { |
| 3435 all_zeroes = false; | 3435 all_zeroes = false; |
| 3436 break; | 3436 break; |
| 3437 } | 3437 } |
| 3438 } | 3438 } |
| 3439 EXPECT_FALSE(all_zeroes); | 3439 EXPECT_FALSE(all_zeroes); |
| 3440 } | 3440 } |
| 3441 } | 3441 } |
| 3442 | 3442 |
| 3443 } // namespace net | 3443 } // namespace net |
| OLD | NEW |