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

Unified Diff: media/blink/key_system_config_selector_unittest.cc

Issue 1953803002: Remove remaining uses of KeySystemInfo and InitDataTypeMask (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 7 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') | media/media.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/key_system_config_selector_unittest.cc
diff --git a/media/blink/key_system_config_selector_unittest.cc b/media/blink/key_system_config_selector_unittest.cc
index 3ddf94e71ea886486585effcfec09fce0e0c15de..90035836fecf0c7ee7fba46e56e647b0a11c2f0d 100644
--- a/media/blink/key_system_config_selector_unittest.cc
+++ b/media/blink/key_system_config_selector_unittest.cc
@@ -60,11 +60,11 @@ class FakeKeySystems : public KeySystems {
case EmeInitDataType::UNKNOWN:
return false;
case EmeInitDataType::WEBM:
- return (init_data_types & kInitDataTypeMaskWebM) != 0;
+ return init_data_type_webm_supported_;
case EmeInitDataType::CENC:
- return (init_data_types & kInitDataTypeMaskCenc) != 0;
+ return init_data_type_cenc_supported_;
case EmeInitDataType::KEYIDS:
- return (init_data_types & kInitDataTypeMaskKeyIds) != 0;
+ return init_data_type_keyids_supported_;
}
NOTREACHED();
return false;
@@ -123,7 +123,9 @@ class FakeKeySystems : public KeySystems {
return distinctive_identifier;
}
- InitDataTypeMask init_data_types = kInitDataTypeMaskNone;
+ bool init_data_type_webm_supported_ = false;
+ bool init_data_type_cenc_supported_ = false;
+ bool init_data_type_keyids_supported_ = false;
// INVALID so that they must be set in any test that needs them.
EmeSessionTypeSupport persistent_license = EmeSessionTypeSupport::INVALID;
@@ -295,7 +297,7 @@ TEST_F(KeySystemConfigSelectorTest, InitDataTypes_Empty) {
}
TEST_F(KeySystemConfigSelectorTest, InitDataTypes_NoneSupported) {
- key_systems_->init_data_types = kInitDataTypeMaskWebM;
+ key_systems_->init_data_type_webm_supported_ = true;
std::vector<blink::WebEncryptedMediaInitDataType> init_data_types;
init_data_types.push_back(blink::WebEncryptedMediaInitDataType::Unknown);
@@ -310,7 +312,7 @@ TEST_F(KeySystemConfigSelectorTest, InitDataTypes_NoneSupported) {
}
TEST_F(KeySystemConfigSelectorTest, InitDataTypes_SubsetSupported) {
- key_systems_->init_data_types = kInitDataTypeMaskWebM;
+ key_systems_->init_data_type_webm_supported_ = true;
std::vector<blink::WebEncryptedMediaInitDataType> init_data_types;
init_data_types.push_back(blink::WebEncryptedMediaInitDataType::Unknown);
« no previous file with comments | « media/base/key_systems.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698