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

Unified Diff: media/base/mime_util_unittest.cc

Issue 1840173004: Flip unified media pipeline to default-on w/ disabled holdback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Comments. Fix UMA. Created 4 years, 9 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') | media/base/run_all_unittests.cc » ('j') | 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 0690f85f73b3c27cdb84d28a2d1bba3e946eaff2..97474b76ae073ae289e9b4f6b94df92d0e2c5d4d 100644
--- a/media/base/mime_util_unittest.cc
+++ b/media/base/mime_util_unittest.cc
@@ -399,5 +399,20 @@ TEST(IsCodecSupportedOnPlatformTest, OpusOggSupport) {
});
}
+TEST(IsCodecSupportedOnPlatformTest, HLSDoesNotSupportMPEG2AAC) {
+ // Vary all parameters; thus use default initial state.
+ MimeUtil::PlatformInfo states_to_vary = VaryAllFields();
+ MimeUtil::PlatformInfo test_states;
+
+ RunCodecSupportTest(
+ states_to_vary, test_states,
+ [](const MimeUtil::PlatformInfo& info, MimeUtil::Codec codec) {
+ EXPECT_FALSE(MimeUtil::IsCodecSupportedOnPlatform(
+ MimeUtil::MPEG2_AAC, "application/x-mpegurl", false, info));
+ EXPECT_FALSE(MimeUtil::IsCodecSupportedOnPlatform(
+ MimeUtil::MPEG2_AAC, "application/vnd.apple.mpegurl", false, info));
+ });
+}
+
} // namespace internal
} // namespace media
« no previous file with comments | « media/base/mime_util_internal.cc ('k') | media/base/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698