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

Unified Diff: media/base/key_systems_unittest.cc

Issue 2783963002: Add IsSupportedAudioConfig in MediaClient (Closed)
Patch Set: CR feedback Created 3 years, 9 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/decode_capabilities.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 665e68df4b30d07699ee6c2c25539671d791173a..62677fab143634708a792fa81a879d2103514104 100644
--- a/media/base/key_systems_unittest.cc
+++ b/media/base/key_systems_unittest.cc
@@ -180,6 +180,7 @@ 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 IsSupportedAudioConfig(const media::AudioConfig& config) final;
bool IsSupportedVideoConfig(const media::VideoConfig& config) final;
// Helper function to test the case where IsKeySystemsUpdateNeeded() is true
@@ -231,6 +232,10 @@ void TestMediaClient::RecordRapporURL(const std::string& /* metric */,
NOTIMPLEMENTED();
}
+bool TestMediaClient::IsSupportedAudioConfig(const media::AudioConfig& config) {
+ return true;
+}
+
bool TestMediaClient::IsSupportedVideoConfig(const media::VideoConfig& config) {
return true;
}
« no previous file with comments | « media/base/decode_capabilities.cc ('k') | media/base/media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698