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
|
|
|
|
2018-02-21 08:46:03 +01:00
|
|
|
MOCK_METHOD5(ProcessCapture,
|
2018-07-16 17:08:41 +02:00
|
|
|
void(EchoPathVariability echo_path_variability,
|
2017-01-27 03:28:19 -08:00
|
|
|
bool capture_signal_saturation,
|
2018-06-19 10:50:11 +02:00
|
|
|
const absl::optional<DelayEstimate>& delay_estimate,
|
2017-12-11 21:34:19 +01:00
|
|
|
RenderBuffer* render_buffer,
|
2017-01-27 03:28:19 -08:00
|
|
|
std::vector<std::vector<float>>* capture));
|
2018-06-19 10:50:11 +02:00
|
|
|
MOCK_CONST_METHOD0(Delay, absl::optional<int>());
|
2017-01-27 03:28:19 -08:00
|
|
|
MOCK_METHOD1(UpdateEchoLeakageStatus, void(bool leakage_detected));
|
2017-11-22 14:17:39 +01:00
|
|
|
MOCK_CONST_METHOD1(GetMetrics, void(EchoControl::Metrics* metrics));
|
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_
|