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

Unified Diff: media/base/mime_util_unittest.cc

Issue 2640373002: Add support for audio/{x-}mpegurl mime type for HLS. (Closed)
Patch Set: Fix test expectations. Created 3 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 | « media/base/mime_util_internal.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mime_util_unittest.cc
diff --git a/media/base/mime_util_unittest.cc b/media/base/mime_util_unittest.cc
index 714536822b5e22adac0dd4ad2c11125cc210c0a6..10e4aec1194175521bab7d9e8a9346a1ee5ecc66 100644
--- a/media/base/mime_util_unittest.cc
+++ b/media/base/mime_util_unittest.cc
@@ -146,6 +146,8 @@ TEST(MimeUtilTest, CommonMediaMimeType) {
EXPECT_EQ(kHlsSupported, IsSupportedMediaMimeType("Application/X-MPEGURL"));
EXPECT_EQ(kHlsSupported, IsSupportedMediaMimeType(
"application/vnd.apple.mpegurl"));
+ EXPECT_EQ(kHlsSupported, IsSupportedMediaMimeType("audio/mpegurl"));
+ EXPECT_EQ(kHlsSupported, IsSupportedMediaMimeType("audio/x-mpegurl"));
#if defined(USE_PROPRIETARY_CODECS)
EXPECT_TRUE(IsSupportedMediaMimeType("audio/mp4"));
@@ -428,6 +430,10 @@ TEST(IsCodecSupportedOnPlatformTest, HLSDoesNotSupportMPEG2AAC) {
MimeUtil::MPEG2_AAC, "application/x-mpegurl", false, info));
EXPECT_FALSE(MimeUtil::IsCodecSupportedOnPlatform(
MimeUtil::MPEG2_AAC, "application/vnd.apple.mpegurl", false, info));
+ EXPECT_FALSE(MimeUtil::IsCodecSupportedOnPlatform(
+ MimeUtil::MPEG2_AAC, "audio/mpegurl", false, info));
+ EXPECT_FALSE(MimeUtil::IsCodecSupportedOnPlatform(
+ MimeUtil::MPEG2_AAC, "audio/x-mpegurl", false, info));
});
}
« no previous file with comments | « media/base/mime_util_internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698