2017-01-27 03:28:19 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_ECHO_REMOVER_H_
|
|
|
|
|
#define MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_ECHO_REMOVER_H_
|
2017-01-27 03:28:19 -08:00
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2018-06-19 10:50:11 +02:00
|
|
|
#include "absl/types/optional.h"
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "modules/audio_processing/aec3/echo_path_variability.h"
|
|
|
|
|
#include "modules/audio_processing/aec3/echo_remover.h"
|
|
|
|
|
#include "modules/audio_processing/aec3/render_buffer.h"
|
|
|
|
|
#include "test/gmock.h"
|
2017-01-27 03:28:19 -08:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
namespace test {
|
|
|
|
|
|
|
|
|
|
class MockEchoRemover : public EchoRemover {
|
|
|
|
|
public:
|
2018-07-17 09:56:46 +02:00
|
|
|
MockEchoRemover();
|
|
|
|
|
virtual ~MockEchoRemover();
|
2017-01-27 03:28:19 -08:00
|
|
|
|
2020-05-18 15:10:15 +02:00
|
|
|
MOCK_METHOD(void,
|
|
|
|
|
ProcessCapture,
|
|
|
|
|
(EchoPathVariability echo_path_variability,
|
|
|
|
|
bool capture_signal_saturation,
|
|
|
|
|
const absl::optional<DelayEstimate>& delay_estimate,
|
|
|
|
|
RenderBuffer* render_buffer,
|
2022-05-23 10:39:53 +02:00
|
|
|
Block* linear_output,
|
|
|
|
|
Block* capture),
|
2020-05-18 15:10:15 +02:00
|
|
|
(override));
|
|
|
|
|
MOCK_METHOD(void,
|
|
|
|
|
UpdateEchoLeakageStatus,
|
|
|
|
|
(bool leakage_detected),
|
|
|
|
|
(override));
|
|
|
|
|
MOCK_METHOD(void,
|
|
|
|
|
GetMetrics,
|
|
|
|
|
(EchoControl::Metrics * metrics),
|
|
|
|
|
(const, override));
|
2021-03-11 06:33:45 +00:00
|
|
|
MOCK_METHOD(void,
|
|
|
|
|
SetCaptureOutputUsage,
|
|
|
|
|
(bool capture_output_used),
|
|
|
|
|
(override));
|
2017-01-27 03:28:19 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace test
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_ECHO_REMOVER_H_
|