| Index: media/audio/audio_output_controller_unittest.cc
|
| diff --git a/media/audio/audio_output_controller_unittest.cc b/media/audio/audio_output_controller_unittest.cc
|
| index 9d3cc4efa7a7a0f44c190cea7f16d5c89f97ac91..125763c9bfe24cc1657d42a8d2228cc9ec5f8184 100644
|
| --- a/media/audio/audio_output_controller_unittest.cc
|
| +++ b/media/audio/audio_output_controller_unittest.cc
|
| @@ -53,7 +53,7 @@ class MockAudioOutputControllerSyncReader
|
| MockAudioOutputControllerSyncReader() {}
|
|
|
| MOCK_METHOD1(UpdatePendingBytes, void(uint32 bytes));
|
| - MOCK_METHOD2(Read, void(const AudioBus* source, AudioBus* dest));
|
| + MOCK_METHOD1(Read, void(AudioBus* dest));
|
| MOCK_METHOD0(Close, void());
|
|
|
| private:
|
| @@ -83,10 +83,10 @@ ACTION_P(SignalEvent, event) {
|
|
|
| static const float kBufferNonZeroData = 1.0f;
|
| ACTION(PopulateBuffer) {
|
| - arg1->Zero();
|
| + arg0->Zero();
|
| // Note: To confirm the buffer will be populated in these tests, it's
|
| // sufficient that only the first float in channel 0 is set to the value.
|
| - arg1->channel(0)[0] = kBufferNonZeroData;
|
| + arg0->channel(0)[0] = kBufferNonZeroData;
|
| }
|
|
|
| class AudioOutputControllerTest : public testing::Test {
|
| @@ -136,7 +136,7 @@ class AudioOutputControllerTest : public testing::Test {
|
| // sent from the render process.
|
| EXPECT_CALL(mock_sync_reader_, UpdatePendingBytes(_))
|
| .Times(AtLeast(1));
|
| - EXPECT_CALL(mock_sync_reader_, Read(_, _))
|
| + EXPECT_CALL(mock_sync_reader_, Read(_))
|
| .WillRepeatedly(DoAll(PopulateBuffer(),
|
| SignalEvent(&read_event_)));
|
| controller_->Play();
|
|
|