OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "media/base/eme_constants.h" | 9 #include "media/base/eme_constants.h" |
10 #include "media/base/key_system_info.h" | 10 #include "media/base/key_system_info.h" |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 UpdateClientKeySystems(); | 711 UpdateClientKeySystems(); |
712 | 712 |
713 EXPECT_TRUE(IsConcreteSupportedKeySystem(kUsesAes)); | 713 EXPECT_TRUE(IsConcreteSupportedKeySystem(kUsesAes)); |
714 EXPECT_TRUE(IsSupportedKeySystemWithMediaMimeType( | 714 EXPECT_TRUE(IsSupportedKeySystemWithMediaMimeType( |
715 kVideoWebM, no_codecs(), kUsesAes)); | 715 kVideoWebM, no_codecs(), kUsesAes)); |
716 EXPECT_FALSE(IsConcreteSupportedKeySystem(kExternal)); | 716 EXPECT_FALSE(IsConcreteSupportedKeySystem(kExternal)); |
717 EXPECT_FALSE(IsSupportedKeySystemWithMediaMimeType( | 717 EXPECT_FALSE(IsSupportedKeySystemWithMediaMimeType( |
718 kVideoWebM, no_codecs(), kExternal)); | 718 kVideoWebM, no_codecs(), kExternal)); |
719 } | 719 } |
720 | 720 |
| 721 TEST_F(KeySystemsTest, PrefixedKeySystemsUpdate) { |
| 722 EXPECT_TRUE(IsConcreteSupportedKeySystem(kUsesAes)); |
| 723 EXPECT_TRUE(PrefixedIsSupportedKeySystemWithMediaMimeType( |
| 724 kVideoWebM, no_codecs(), kUsesAes)); |
| 725 EXPECT_TRUE(IsConcreteSupportedKeySystem(kExternal)); |
| 726 EXPECT_TRUE(PrefixedIsSupportedKeySystemWithMediaMimeType( |
| 727 kVideoWebM, no_codecs(), kExternal)); |
| 728 |
| 729 UpdateClientKeySystems(); |
| 730 |
| 731 EXPECT_TRUE(IsConcreteSupportedKeySystem(kUsesAes)); |
| 732 EXPECT_TRUE(PrefixedIsSupportedKeySystemWithMediaMimeType( |
| 733 kVideoWebM, no_codecs(), kUsesAes)); |
| 734 EXPECT_FALSE(IsConcreteSupportedKeySystem(kExternal)); |
| 735 EXPECT_FALSE(PrefixedIsSupportedKeySystemWithMediaMimeType( |
| 736 kVideoWebM, no_codecs(), kExternal)); |
| 737 } |
| 738 |
721 } // namespace media | 739 } // namespace media |
OLD | NEW |