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

Unified Diff: media/renderers/audio_renderer_impl_unittest.cc

Issue 1137323005: Don't return wall clock times when time isn't ticking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include sink_playing_. Created 5 years, 7 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/renderers/audio_renderer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/audio_renderer_impl_unittest.cc
diff --git a/media/renderers/audio_renderer_impl_unittest.cc b/media/renderers/audio_renderer_impl_unittest.cc
index 1fe5bdd0a8b3a1e238610a0c2720b4000cccfee2..119fb76b464915a3cd8ed0d432f2c3d211c30a74 100644
--- a/media/renderers/audio_renderer_impl_unittest.cc
+++ b/media/renderers/audio_renderer_impl_unittest.cc
@@ -519,6 +519,10 @@ TEST_F(AudioRendererImplTest, Underflow_Flush) {
WaitForPendingRead();
StopTicking();
+ // After time stops ticking wall clock times should not be returned.
+ EXPECT_FALSE(
+ renderer_->GetWallClockTimes(std::vector<base::TimeDelta>(1), nullptr));
+
// We shouldn't expect another buffering state change when flushing.
FlushDuringPendingRead();
}
« no previous file with comments | « media/renderers/audio_renderer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698