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

Unified Diff: net/base/mime_util_unittest.cc

Issue 18349: We should download text/csv mime types instead of displaying them.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/mime_util.cc ('k') | webkit/glue/mimetype_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util_unittest.cc
===================================================================
--- net/base/mime_util_unittest.cc (revision 8256)
+++ net/base/mime_util_unittest.cc (working copy)
@@ -65,6 +65,11 @@
EXPECT_EQ(false, net::IsSupportedImageMimeType("image/lolcat"));
EXPECT_EQ(true, net::IsSupportedNonImageMimeType("text/html"));
EXPECT_EQ(false, net::IsSupportedNonImageMimeType("text/virus"));
+
+ EXPECT_EQ(true, net::IsSupportedMimeType("image/jpeg"));
+ EXPECT_EQ(false, net::IsSupportedMimeType("image/lolcat"));
+ EXPECT_EQ(true, net::IsSupportedMimeType("text/html"));
+ EXPECT_EQ(false, net::IsSupportedMimeType("text/virus"));
}
TEST(MimeUtilTest, MatchesMimeType) {
« no previous file with comments | « net/base/mime_util.cc ('k') | webkit/glue/mimetype_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698