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

Unified Diff: media/audio/win/audio_low_latency_output_win_unittest.cc

Issue 1487733003: Allow multiple OnMoreData() calls in WASAPIAudioOutputStreamTest.ValidPacketSize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_low_latency_output_win_unittest.cc
diff --git a/media/audio/win/audio_low_latency_output_win_unittest.cc b/media/audio/win/audio_low_latency_output_win_unittest.cc
index a981b337c05d03167aaa0c1d53b0f2832abc46b2..5494086ed0600662beaee5753010ae9de454afad 100644
--- a/media/audio/win/audio_low_latency_output_win_unittest.cc
+++ b/media/audio/win/audio_low_latency_output_win_unittest.cc
@@ -382,8 +382,8 @@ TEST(WASAPIAudioOutputStreamTest, ValidPacketSize) {
// Wait for the first callback and verify its parameters.
EXPECT_CALL(source, OnMoreData(NotNull(), HasValidDelay(bytes_per_packet)))
- .WillOnce(DoAll(QuitLoop(loop.task_runner()),
- Return(aosw.samples_per_packet())));
+ .WillRepeatedly(DoAll(QuitLoop(loop.task_runner()),
tommi (sloooow) - chröme 2015/12/01 10:06:54 nit: You could do |WillOnce(<QuitLoop>).WillRepeat
wdzierzanowski 2015/12/01 16:42:40 Done.
+ Return(aosw.samples_per_packet())));
aos->Start(&source);
loop.PostDelayedTask(FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698