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(), |