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

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: Let there be just one quit message 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..4c39228f7d9877fdb66e773031120e1ef2a13084 100644
--- a/media/audio/win/audio_low_latency_output_win_unittest.cc
+++ b/media/audio/win/audio_low_latency_output_win_unittest.cc
@@ -380,10 +380,12 @@ TEST(WASAPIAudioOutputStreamTest, ValidPacketSize) {
uint32 bytes_per_packet = aosw.channels() * aosw.samples_per_packet() *
(aosw.bits_per_sample() / 8);
- // Wait for the first callback and verify its parameters.
+ // Wait for the first callback and verify its parameters. Ignore any
+ // subsequent callbacks that might arrive.
EXPECT_CALL(source, OnMoreData(NotNull(), HasValidDelay(bytes_per_packet)))
.WillOnce(DoAll(QuitLoop(loop.task_runner()),
- Return(aosw.samples_per_packet())));
+ Return(aosw.samples_per_packet())))
+ .WillRepeatedly(Return(0));
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