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

Unified Diff: media/base/key_systems_unittest.cc

Issue 2153643002: Make video codec support logic overridable via MediaClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move is_ambiguous flag handling back to StringToCodec Created 4 years, 5 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 | « content/renderer/media/render_media_client.cc ('k') | media/base/media_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/key_systems_unittest.cc
diff --git a/media/base/key_systems_unittest.cc b/media/base/key_systems_unittest.cc
index 6bf2c6e8f68a9365f3cccd313d6ad027d7cdf739..b8dac94b9c58a90e8450c9f37a6321929a9558ee 100644
--- a/media/base/key_systems_unittest.cc
+++ b/media/base/key_systems_unittest.cc
@@ -179,6 +179,9 @@ class TestMediaClient : public MediaClient {
void AddSupportedKeySystems(std::vector<std::unique_ptr<KeySystemProperties>>*
key_systems_properties) override;
void RecordRapporURL(const std::string& metric, const GURL& url) final;
+ bool IsSupportedVideoConfig(media::VideoCodec codec,
+ media::VideoCodecProfile profile,
+ int level) final;
// Helper function to test the case where IsKeySystemsUpdateNeeded() is true
// after AddSupportedKeySystems() is called.
@@ -229,6 +232,12 @@ void TestMediaClient::RecordRapporURL(const std::string& /* metric */,
NOTIMPLEMENTED();
}
+bool TestMediaClient::IsSupportedVideoConfig(media::VideoCodec codec,
+ media::VideoCodecProfile profile,
+ int level) {
+ return true;
+}
+
void TestMediaClient::SetKeySystemsUpdateNeeded() {
is_update_needed_ = true;
}
« no previous file with comments | « content/renderer/media/render_media_client.cc ('k') | media/base/media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698