Alessio Bazzica | e449805 | 2018-12-17 09:44:06 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef MODULES_AUDIO_PROCESSING_TEST_ECHO_CONTROL_MOCK_H_ |
| 12 | #define MODULES_AUDIO_PROCESSING_TEST_ECHO_CONTROL_MOCK_H_ |
| 13 | |
| 14 | #include "api/audio/echo_control.h" |
| 15 | #include "test/gmock.h" |
| 16 | |
| 17 | namespace webrtc { |
| 18 | |
| 19 | class AudioBuffer; |
| 20 | |
| 21 | class MockEchoControl : public EchoControl { |
| 22 | public: |
| 23 | MOCK_METHOD1(AnalyzeRender, void(AudioBuffer* render)); |
| 24 | MOCK_METHOD1(AnalyzeCapture, void(AudioBuffer* capture)); |
| 25 | MOCK_METHOD2(ProcessCapture, |
| 26 | void(AudioBuffer* capture, bool echo_path_change)); |
| 27 | MOCK_CONST_METHOD0(GetMetrics, EchoControl::Metrics()); |
Gustaf Ullberg | 3cb6104 | 2019-10-24 15:52:10 +0200 | [diff] [blame^] | 28 | MOCK_METHOD1(SetAudioBufferDelay, void(int delay_ms)); |
Gustaf Ullberg | 8675eee | 2019-10-09 13:34:36 +0200 | [diff] [blame] | 29 | MOCK_CONST_METHOD0(ActiveProcessing, bool()); |
Alessio Bazzica | e449805 | 2018-12-17 09:44:06 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | } // namespace webrtc |
| 33 | |
| 34 | #endif // MODULES_AUDIO_PROCESSING_TEST_ECHO_CONTROL_MOCK_H_ |