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

Unified Diff: media/blink/key_system_config_selector_unittest.cc

Issue 1124863005: Restrict use of hardware-secure codecs based on the RendererPreference. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setsecurity
Patch Set: Correct unittests. Created 5 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/blink/key_system_config_selector.cc ('k') | media/blink/webencryptedmediaclient_impl.h » ('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 1e2d1e857208ce1c168e35e8cad2b327d7ca95e6..e4da217b8b03bfaaa6d0e23497c9b4b8da24c196 100644
--- a/media/blink/key_system_config_selector_unittest.cc
+++ b/media/blink/key_system_config_selector_unittest.cc
@@ -170,7 +170,7 @@ class KeySystemConfigSelectorTest : public testing::Test {
succeeded_count_ = 0;
not_supported_count_ = 0;
KeySystemConfigSelector(key_systems_.get(), media_permission_.get())
- .SelectConfig(key_system_, configs_, security_origin_,
+ .SelectConfig(key_system_, configs_, security_origin_, false,
base::Bind(&KeySystemConfigSelectorTest::OnSucceeded,
base::Unretained(this)),
base::Bind(&KeySystemConfigSelectorTest::OnNotSupported,
@@ -209,7 +209,8 @@ class KeySystemConfigSelectorTest : public testing::Test {
return (media_permission_->requests != 0 && not_supported_count_ != 0);
}
- void OnSucceeded(const blink::WebMediaKeySystemConfiguration& result) {
+ void OnSucceeded(const blink::WebMediaKeySystemConfiguration& result,
+ bool are_secure_codecs_required) {
succeeded_count_++;
config_ = result;
}
« no previous file with comments | « media/blink/key_system_config_selector.cc ('k') | media/blink/webencryptedmediaclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698