Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Side by Side Diff: net/base/net_util_unittest.cc

Issue 8392039: Use text/plain as a test MIME type instead of application/pdf. (Closed)
Patch Set: " Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698