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

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

Issue 2341783004: [chromecast] Slew stream volume changes in StreamMixerAlsa. (Closed)
Patch Set: Slew stream volume changes in StreamMixerAlsa. Created 4 years, 3 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 14a12641ca7230eab8e955af2d1765d2674e4095..e7d50f8dec647ea7a99cba3c1954e36a3d3af151 100644
--- a/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
+++ b/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
@@ -143,7 +143,6 @@ class MockInputQueue : public StreamMixerAlsa::InputQueue {
// StreamMixerAlsa::InputQueue implementation:
int input_samples_per_second() const override { return samples_per_second_; }
- float volume_multiplier() const override { return multiplier_; }
bool primary() const override { return primary_; }
bool IsDeleting() const override { return deleting_; }
MOCK_METHOD1(Initialize,
@@ -151,6 +150,9 @@ class MockInputQueue : public StreamMixerAlsa::InputQueue {
mixer_rendering_delay));
int MaxReadSize() override { return max_read_size_; }
MOCK_METHOD2(GetResampledData, void(::media::AudioBus* dest, int frames));
+ MOCK_METHOD4(
+ VolumeScaleAccumulate,
+ void(bool repeat_transition, const float* src, int frames, float* dest));
MOCK_METHOD1(AfterWriteFrames,
void(const MediaPipelineBackendAlsa::RenderingDelay&
mixer_rendering_delay));

Powered by Google App Engine
This is Rietveld 408576698