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 <vector> 15 16 #include "absl/types/optional.h" 17 #include "modules/audio_processing/aec3/echo_path_variability.h" 18 #include "modules/audio_processing/aec3/echo_remover.h" 19 #include "modules/audio_processing/aec3/render_buffer.h" 20 #include "test/gmock.h" 21 22 namespace webrtc { 23 namespace test { 24 25 class MockEchoRemover : public EchoRemover { 26 public: 27 MockEchoRemover(); 28 virtual ~MockEchoRemover(); 29 30 MOCK_METHOD(void, 31 ProcessCapture, 32 (EchoPathVariability echo_path_variability, 33 bool capture_signal_saturation, 34 const absl::optional<DelayEstimate>& delay_estimate, 35 RenderBuffer* render_buffer, 36 std::vector<std::vector<std::vector<float>>>* linear_output, 37 std::vector<std::vector<std::vector<float>>>* capture), 38 (override)); 39 MOCK_METHOD(void, 40 UpdateEchoLeakageStatus, 41 (bool leakage_detected), 42 (override)); 43 MOCK_METHOD(void, 44 GetMetrics, 45 (EchoControl::Metrics * metrics), 46 (const, override)); 47 }; 48 49 } // namespace test 50 } // namespace webrtc 51 52 #endif // MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_ECHO_REMOVER_H_ 53