Index: webrtc/audio/audio_state_unittest.cc |
diff --git a/webrtc/audio/audio_state_unittest.cc b/webrtc/audio/audio_state_unittest.cc |
index 05c5003459e94292af27d8eee45e289efb322e65..ffaacb62ca3cfe56e90340fb403b8766ada9cf47 100644 |
--- a/webrtc/audio/audio_state_unittest.cc |
+++ b/webrtc/audio/audio_state_unittest.cc |
@@ -12,6 +12,7 @@ |
#include "webrtc/audio/audio_state.h" |
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h" |
+#include "webrtc/modules/audio_processing/include/mock_audio_processing.h" |
#include "webrtc/test/gtest.h" |
#include "webrtc/test/mock_voice_engine.h" |
@@ -31,8 +32,6 @@ struct ConfigHelper { |
.WillOnce(testing::Return(0)); |
EXPECT_CALL(mock_voice_engine, audio_device_module()) |
.Times(testing::AtLeast(1)); |
- EXPECT_CALL(mock_voice_engine, audio_processing()) |
- .Times(testing::AtLeast(1)); |
EXPECT_CALL(mock_voice_engine, audio_transport()) |
.WillRepeatedly(testing::Return(&audio_transport)); |
@@ -49,6 +48,8 @@ struct ConfigHelper { |
audio_state_config.voice_engine = &mock_voice_engine; |
audio_state_config.audio_mixer = audio_mixer; |
+ audio_state_config.audio_processing = |
+ new rtc::RefCountedObject<MockAudioProcessing>(); |
} |
AudioState::Config& config() { return audio_state_config; } |
MockVoiceEngine& voice_engine() { return mock_voice_engine; } |