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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « media/base/key_systems.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« 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