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

Unified Diff: content/renderer/media/audio_renderer_impl_unittest.cc

Issue 9155003: Fix media timeline so that thumb never exceeds buffered data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT, again Created 8 years, 11 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 | « no previous file | media/base/clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_renderer_impl_unittest.cc
diff --git a/content/renderer/media/audio_renderer_impl_unittest.cc b/content/renderer/media/audio_renderer_impl_unittest.cc
index 06b681b69b834e2a5c8b23bdd1f43d15fc1d050b..31230904e856b14cbd6995f1d7d001d6d1d17bbe 100644
--- a/content/renderer/media/audio_renderer_impl_unittest.cc
+++ b/content/renderer/media/audio_renderer_impl_unittest.cc
@@ -107,7 +107,7 @@ class AudioRendererImplTest
renderer_ = new TestAudioRendererImpl(default_sink.get());
renderer_->Initialize(decoder_,
media::NewExpectedStatusCB(media::PIPELINE_OK),
- NewUnderflowClosure());
+ NewUnderflowClosure(), NewAudioTimeClosure());
// We need an event to verify that all tasks are done before leaving
// our tests.
@@ -125,6 +125,16 @@ class AudioRendererImplTest
base::Unretained(this));
}
+ void OnAudioTimeCallback(
+ base::TimeDelta current_time, base::TimeDelta max_time) {
+ CHECK(current_time <= max_time);
+ }
+
+ media::AudioRenderer::AudioTimeCB NewAudioTimeClosure() {
+ return base::Bind(&AudioRendererImplTest::OnAudioTimeCallback,
+ base::Unretained(this));
+ }
+
protected:
// Posts a final task to the IO message loop and waits for completion.
void WaitForIOThreadCompletion() {
« no previous file with comments | « no previous file | media/base/clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698