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

Unified Diff: media/base/audio_renderer_mixer_unittest.cc

Issue 2567143002: media::SilentSinkSuspender should simulate |delay| and |delay_timestamp| (Closed)
Patch Set: media_perftests compilation fix Created 4 years 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: media/base/audio_renderer_mixer_unittest.cc
diff --git a/media/base/audio_renderer_mixer_unittest.cc b/media/base/audio_renderer_mixer_unittest.cc
index 36f3cb6863769df5b3923daa2c3e0c22f8070dc2..f0912f4fc91098ddf93b88b724781166b3ffa69a 100644
--- a/media/base/audio_renderer_mixer_unittest.cc
+++ b/media/base/audio_renderer_mixer_unittest.cc
@@ -88,7 +88,8 @@ class AudioRendererMixerTest
// Allocate one callback for generating expected results.
double step = kSineCycles / static_cast<double>(
output_parameters_.frames_per_buffer());
- expected_callback_.reset(new FakeAudioRenderCallback(step));
+ expected_callback_.reset(
+ new FakeAudioRenderCallback(step, output_parameters_.sample_rate()));
}
AudioRendererMixer* GetMixer(int owner_id,
@@ -121,7 +122,8 @@ class AudioRendererMixerTest
static_cast<double>(output_parameters_.frames_per_buffer()));
for (int j = 0; j < inputs_per_sample_rate; ++j, ++input) {
- fake_callbacks_.push_back(new FakeAudioRenderCallback(step));
+ fake_callbacks_.push_back(new FakeAudioRenderCallback(
+ step, output_parameters_.sample_rate()));
mixer_inputs_.push_back(CreateMixerInput());
mixer_inputs_[input]->Initialize(input_parameters_[i],
fake_callbacks_[input]);

Powered by Google App Engine
This is Rietveld 408576698