| 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";
|
|
|