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

Unified Diff: chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc

Issue 2738873002: [Chromecast] Implement new volume control API (Closed)
Patch Set: slan comments 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
Index: chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
diff --git a/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc b/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
index db5e3421bb6a6df36c083dd7299f3cf37db9b3f4..6574d673d83471852df6ba613423868705acd395 100644
--- a/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
+++ b/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
@@ -157,6 +157,9 @@ class MockInputQueue : public StreamMixerAlsa::InputQueue {
void(const MediaPipelineBackendAlsa::RenderingDelay&
mixer_rendering_delay));
std::string device_id() const override { return device_id_; }
+ AudioContentType content_type() const override {
+ return AudioContentType::kMedia;
+ }
void set_filter_group(FilterGroup* group) override { filter_group_ = group; }
FilterGroup* filter_group() override { return filter_group_; }
int MaxReadSize() override { return max_read_size_; }
@@ -171,6 +174,9 @@ class MockInputQueue : public StreamMixerAlsa::InputQueue {
MOCK_METHOD1(SignalError, void(StreamMixerAlsaInput::MixerError error));
MOCK_METHOD1(PrepareToDelete, void(const OnReadyToDeleteCb& delete_cb));
+ void SetContentTypeVolume(float volume) override {}
+ void SetMuted(bool muted) override {}
+
// Setters and getters for test control.
void SetPaused(bool paused) { paused_ = paused; }
void SetMaxReadSize(int max_read_size) { max_read_size_ = max_read_size; }
« no previous file with comments | « chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc ('k') | chromecast/media/cma/backend/alsa/volume_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698