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

Unified Diff: media/blink/webaudiosourceprovider_impl_unittest.cc

Issue 2517503003: Reland: Make more media APIs aware of |delay| and |delay_timestamp| (Closed)
Patch Set: Comments from chcunningham@ and Dale 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
« no previous file with comments | « media/blink/webaudiosourceprovider_impl.cc ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webaudiosourceprovider_impl_unittest.cc
diff --git a/media/blink/webaudiosourceprovider_impl_unittest.cc b/media/blink/webaudiosourceprovider_impl_unittest.cc
index d8c4b58f1eefbd82fc3d173c6acddd5427340505..4a6d22ff31b1d39eb55ee7a959318e3f1d88d401 100644
--- a/media/blink/webaudiosourceprovider_impl_unittest.cc
+++ b/media/blink/webaudiosourceprovider_impl_unittest.cc
@@ -215,7 +215,8 @@ TEST_F(WebAudioSourceProviderImplTest, ProvideInput) {
// Ensure volume adjustment is working.
fake_callback_.reset();
- fake_callback_.Render(bus2.get(), 0, 0);
+ fake_callback_.Render(base::TimeDelta(), base::TimeTicks::Now(), 0,
+ bus2.get());
bus2->Scale(kTestVolume);
fake_callback_.reset();
@@ -234,9 +235,11 @@ TEST_F(WebAudioSourceProviderImplTest, ProvideInput) {
// configuring the fake callback to return half the data. After these calls
// bus1 is full of junk data, and bus2 is partially filled.
wasp_impl_->SetVolume(1);
- fake_callback_.Render(bus1.get(), 0, 0);
+ fake_callback_.Render(base::TimeDelta(), base::TimeTicks::Now(), 0,
+ bus1.get());
fake_callback_.reset();
- fake_callback_.Render(bus2.get(), 0, 0);
+ fake_callback_.Render(base::TimeDelta(), base::TimeTicks::Now(), 0,
+ bus2.get());
bus2->ZeroFramesPartial(bus2->frames() / 2,
bus2->frames() - bus2->frames() / 2);
fake_callback_.reset();
« no previous file with comments | « media/blink/webaudiosourceprovider_impl.cc ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698