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

Unified Diff: media/base/key_systems_unittest.cc

Issue 875073004: Don't update Media.EME.KeySystemSupport UMA for unprefixed EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move comment Created 5 years, 10 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/key_systems.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/key_systems_unittest.cc
diff --git a/media/base/key_systems_unittest.cc b/media/base/key_systems_unittest.cc
index afd9dc06e25bdcb4ceb2ddb50446632316550542..07bc5ec3524b119cc02d4cd95f02213387714832 100644
--- a/media/base/key_systems_unittest.cc
+++ b/media/base/key_systems_unittest.cc
@@ -718,4 +718,22 @@ TEST_F(KeySystemsTest, KeySystemsUpdate) {
kVideoWebM, no_codecs(), kExternal));
}
+TEST_F(KeySystemsTest, PrefixedKeySystemsUpdate) {
+ EXPECT_TRUE(IsConcreteSupportedKeySystem(kUsesAes));
+ EXPECT_TRUE(PrefixedIsSupportedKeySystemWithMediaMimeType(
+ kVideoWebM, no_codecs(), kUsesAes));
+ EXPECT_TRUE(IsConcreteSupportedKeySystem(kExternal));
+ EXPECT_TRUE(PrefixedIsSupportedKeySystemWithMediaMimeType(
+ kVideoWebM, no_codecs(), kExternal));
+
+ UpdateClientKeySystems();
+
+ EXPECT_TRUE(IsConcreteSupportedKeySystem(kUsesAes));
+ EXPECT_TRUE(PrefixedIsSupportedKeySystemWithMediaMimeType(
+ kVideoWebM, no_codecs(), kUsesAes));
+ EXPECT_FALSE(IsConcreteSupportedKeySystem(kExternal));
+ EXPECT_FALSE(PrefixedIsSupportedKeySystemWithMediaMimeType(
+ kVideoWebM, no_codecs(), kExternal));
+}
+
} // namespace media
« no previous file with comments | « media/base/key_systems.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698