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

Unified Diff: media/base/key_systems_unittest.cc

Issue 1014733002: Implement support for "keyids" Initialization Data format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/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 7f8d27c1f52b4af256939f535aededaf9606d774..bb60e8ba5140281adf04f08ed8d985a03853220e 100644
--- a/media/base/key_systems_unittest.cc
+++ b/media/base/key_systems_unittest.cc
@@ -354,6 +354,15 @@ TEST_F(KeySystemsTest, ClearKey) {
EXPECT_EQ("Unknown", GetKeySystemNameForUMA(kPrefixedClearKey));
}
+TEST_F(KeySystemsTest, ClearKeyWithInitDataType) {
+ EXPECT_TRUE(IsSupportedKeySystem(kClearKey));
+ EXPECT_TRUE(IsSupportedKeySystemWithInitDataType(kClearKey, "webm"));
+ EXPECT_TRUE(IsSupportedKeySystemWithInitDataType(kClearKey, "keyids"));
+
+ // All other InitDataTypes are not supported.
+ EXPECT_FALSE(IsSupportedKeySystemWithInitDataType(kClearKey, "unknown"));
+}
+
// The key system is not registered and therefore is unrecognized.
TEST_F(KeySystemsTest, Basic_UnrecognizedKeySystem) {
static const char* const kUnrecognized = "x-org.example.unrecognized";
« 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