mock_echo_remover.h (1910B)
1 /* 2 * Copyright (c) 2017 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_AEC3_MOCK_MOCK_ECHO_REMOVER_H_ 12 #define MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_ECHO_REMOVER_H_ 13 14 #include <optional> 15 16 #include "api/audio/echo_control.h" 17 #include "modules/audio_processing/aec3/block.h" 18 #include "modules/audio_processing/aec3/delay_estimate.h" 19 #include "modules/audio_processing/aec3/echo_path_variability.h" 20 #include "modules/audio_processing/aec3/echo_remover.h" 21 #include "modules/audio_processing/aec3/render_buffer.h" 22 #include "test/gmock.h" 23 24 namespace webrtc { 25 namespace test { 26 27 class MockEchoRemover : public EchoRemover { 28 public: 29 MockEchoRemover(); 30 virtual ~MockEchoRemover(); 31 32 MOCK_METHOD(void, 33 ProcessCapture, 34 (EchoPathVariability echo_path_variability, 35 bool capture_signal_saturation, 36 const std::optional<DelayEstimate>& delay_estimate, 37 RenderBuffer* render_buffer, 38 Block* linear_output, 39 Block* capture), 40 (override)); 41 MOCK_METHOD(void, 42 UpdateEchoLeakageStatus, 43 (bool leakage_detected), 44 (override)); 45 MOCK_METHOD(void, 46 GetMetrics, 47 (EchoControl::Metrics * metrics), 48 (const, override)); 49 MOCK_METHOD(void, 50 SetCaptureOutputUsage, 51 (bool capture_output_used), 52 (override)); 53 }; 54 55 } // namespace test 56 } // namespace webrtc 57 58 #endif // MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_ECHO_REMOVER_H_