Index: media/audio/win/audio_output_win_unittest.cc |
diff --git a/media/audio/win/audio_output_win_unittest.cc b/media/audio/win/audio_output_win_unittest.cc |
index 10284883c5b04d36006b510db43f92b18f2d8482..68f61eaf4d7395b3b91e4074e7f8fe150778e4be 100644 |
--- a/media/audio/win/audio_output_win_unittest.cc |
+++ b/media/audio/win/audio_output_win_unittest.cc |
@@ -32,9 +32,7 @@ |
namespace media { |
-static int ClearData(AudioBus* audio_bus, |
- uint32_t total_bytes_delay, |
- uint32_t frames_skipped) { |
+static int ClearData(AudioBus* audio_bus, uint32 total_bytes_delay) { |
audio_bus->Zero(); |
return audio_bus->frames(); |
} |
@@ -48,9 +46,7 @@ |
had_error_(0) { |
} |
// AudioSourceCallback::OnMoreData implementation: |
- int OnMoreData(AudioBus* audio_bus, |
- uint32_t total_bytes_delay, |
- uint32_t frames_skipped) override { |
+ int OnMoreData(AudioBus* audio_bus, uint32 total_bytes_delay) override { |
++callback_count_; |
// Touch the channel memory value to make sure memory is good. |
audio_bus->Zero(); |
@@ -84,11 +80,9 @@ |
explicit TestSourceLaggy(int lag_in_ms) |
: lag_in_ms_(lag_in_ms) { |
} |
- int OnMoreData(AudioBus* audio_bus, |
- uint32_t total_bytes_delay, |
- uint32_t frames_skipped) override { |
+ int OnMoreData(AudioBus* audio_bus, uint32 total_bytes_delay) override { |
// Call the base, which increments the callback_count_. |
- TestSourceBasic::OnMoreData(audio_bus, total_bytes_delay, frames_skipped); |
+ TestSourceBasic::OnMoreData(audio_bus, total_bytes_delay); |
if (callback_count() > kMaxNumBuffers) { |
::Sleep(lag_in_ms_); |
} |
@@ -480,21 +474,22 @@ |
// pending bytes will go down and eventually read zero. |
InSequence s; |
- EXPECT_CALL(source, OnMoreData(NotNull(), 0, 0)).WillOnce(Invoke(ClearData)); |
+ EXPECT_CALL(source, OnMoreData(NotNull(), 0)) |
+ .WillOnce(Invoke(ClearData)); |
// Note: If AudioManagerWin::NumberOfWaveOutBuffers() ever changes, or if this |
// test is run on Vista, these expectations will fail. |
- EXPECT_CALL(source, OnMoreData(NotNull(), bytes_100_ms, 0)) |
+ EXPECT_CALL(source, OnMoreData(NotNull(), bytes_100_ms)) |
.WillOnce(Invoke(ClearData)); |
- EXPECT_CALL(source, OnMoreData(NotNull(), 2 * bytes_100_ms, 0)) |
+ EXPECT_CALL(source, OnMoreData(NotNull(), 2 * bytes_100_ms)) |
.WillOnce(Invoke(ClearData)); |
- EXPECT_CALL(source, OnMoreData(NotNull(), 2 * bytes_100_ms, 0)) |
+ EXPECT_CALL(source, OnMoreData(NotNull(), 2 * bytes_100_ms)) |
.Times(AnyNumber()) |
.WillRepeatedly(Return(0)); |
- EXPECT_CALL(source, OnMoreData(NotNull(), bytes_100_ms, 0)) |
+ EXPECT_CALL(source, OnMoreData(NotNull(), bytes_100_ms)) |
.Times(AnyNumber()) |
.WillRepeatedly(Return(0)); |
- EXPECT_CALL(source, OnMoreData(NotNull(), 0, 0)) |
+ EXPECT_CALL(source, OnMoreData(NotNull(), 0)) |
.Times(AnyNumber()) |
.WillRepeatedly(Return(0)); |
@@ -519,9 +514,7 @@ |
~SyncSocketSource() override {} |
// AudioSourceCallback::OnMoreData implementation: |
- int OnMoreData(AudioBus* audio_bus, |
- uint32_t total_bytes_delay, |
- uint32_t frames_skipped) override { |
+ int OnMoreData(AudioBus* audio_bus, uint32 total_bytes_delay) override { |
socket_->Send(&total_bytes_delay, sizeof(total_bytes_delay)); |
uint32 size = socket_->Receive(data_.get(), data_size_); |
DCHECK_EQ(static_cast<size_t>(size) % sizeof(*audio_bus_->channel(0)), 0U); |
@@ -572,7 +565,7 @@ |
if (ctx.socket->Receive(&total_bytes_delay, sizeof(total_bytes_delay)) == 0) |
break; |
if ((times > 0) && (total_bytes_delay < 1000)) __debugbreak(); |
- sine.OnMoreData(audio_bus.get(), total_bytes_delay, 0); |
+ sine.OnMoreData(audio_bus.get(), total_bytes_delay); |
ctx.socket->Send(data.get(), ctx.packet_size_bytes); |
++times; |
} |