Provide a default return value for mock_audio_device_.TimeUntilNextProcess.

By default the return value will be 0, which if we hit, could cause busy loops.

BUG=webrtc:7187

Review-Url: https://codereview.webrtc.org/2750503002
Cr-Commit-Position: refs/heads/master@{#17213}
This commit is contained in:
tommi 2017-03-13 08:23:35 -07:00 committed by Commit bot
parent 96feb2ac1c
commit 8eb0751b2e

View File

@ -55,6 +55,8 @@ class MockVoiceEngine : public VoiceEngineImpl {
return proxy;
}));
ON_CALL(mock_audio_device_, TimeUntilNextProcess())
.WillByDefault(testing::Return(1000));
ON_CALL(*this, audio_device_module())
.WillByDefault(testing::Return(&mock_audio_device_));
ON_CALL(*this, audio_processing())