summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-28 18:21:22 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-28 18:21:22 +0000
commite6affbb71df08d48d1c69de86944bfe2a8f92b16 (patch)
treea5d56352a0cce92dd86bc6ef13e22ec65dfb0413 /net
parentb535b3943fadd9f6ab4e9185ce2e003599874f5f (diff)
downloadchromium_src-e6affbb71df08d48d1c69de86944bfe2a8f92b16.zip
chromium_src-e6affbb71df08d48d1c69de86944bfe2a8f92b16.tar.gz
chromium_src-e6affbb71df08d48d1c69de86944bfe2a8f92b16.tar.bz2
Use text/plain as a test MIME type instead of application/pdf for NetUtilTest.GenerateFileName.
application/pdf may not have a preferred extension mapping on all bots. BUG=NetUtilTest.GenerateFileName test fails on Win Beta builder. TEST=net_unittests --gtest_filter=NetUtilTest.GenerateFileName Review URL: http://codereview.chromium.org/8392039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/net_util_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/net_util_unittest.cc b/net/base/net_util_unittest.cc
index e971573..5a24a31 100644
--- a/net/base/net_util_unittest.cc
+++ b/net/base/net_util_unittest.cc
@@ -2289,16 +2289,16 @@ TEST(NetUtilTest, GenerateFileName) {
"",
"",
"",
- "application/pdf",
+ "text/plain",
L"download",
- L"npdf.pdf"
+ L"npdf" TXT_EXT
},
{ // Shouldn't overwrite C-D specified extension.
"http://www.example.com/npdf.php?fn=foobar.pdf",
"Content-Disposition: filename=foobar.jpg",
"",
"",
- "application/pdf",
+ "text/plain",
L"download",
L"foobar.jpg"
},