| Index: net/base/mime_sniffer_unittest.cc
|
| ===================================================================
|
| --- net/base/mime_sniffer_unittest.cc (revision 33698)
|
| +++ net/base/mime_sniffer_unittest.cc (working copy)
|
| @@ -88,6 +88,14 @@
|
| };
|
|
|
| TestArray(tests, arraysize(tests));
|
| +
|
| + // Don't sniff Linux installers with embedded shell scripts as text/plain.
|
| + std::string content = "#!/bin/bash\necho hi\n";
|
| + content.resize(5000, '\n');
|
| + content.resize(20000, '\xFD');
|
| + EXPECT_EQ("application/octet-stream",
|
| + SniffMimeType(content, "http://www.example.com/foo.bin",
|
| + "application/octet-stream"));
|
| }
|
|
|
| TEST(MimeSnifferTest, ChromeExtensionsTest) {
|
|
|