2017-06-08 08:12:46 -07: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_AEC_DUMP_MOCK_AEC_DUMP_H_
|
|
|
|
|
#define MODULES_AUDIO_PROCESSING_AEC_DUMP_MOCK_AEC_DUMP_H_
|
2017-06-08 08:12:46 -07:00
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "modules/audio_processing/include/aec_dump.h"
|
|
|
|
|
#include "test/gmock.h"
|
2017-06-08 08:12:46 -07:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
namespace test {
|
|
|
|
|
|
|
|
|
|
class MockAecDump : public AecDump {
|
|
|
|
|
public:
|
|
|
|
|
MockAecDump();
|
|
|
|
|
virtual ~MockAecDump();
|
|
|
|
|
|
2018-08-10 15:38:52 +02:00
|
|
|
MOCK_METHOD2(WriteInitMessage,
|
|
|
|
|
void(const ProcessingConfig& api_format, int64_t time_now_ms));
|
2017-06-08 08:12:46 -07:00
|
|
|
|
2018-02-16 11:54:07 +01:00
|
|
|
MOCK_METHOD1(AddCaptureStreamInput,
|
|
|
|
|
void(const AudioFrameView<const float>& src));
|
|
|
|
|
MOCK_METHOD1(AddCaptureStreamOutput,
|
|
|
|
|
void(const AudioFrameView<const float>& src));
|
2017-06-08 08:12:46 -07:00
|
|
|
MOCK_METHOD1(AddCaptureStreamInput, void(const AudioFrame& frame));
|
|
|
|
|
MOCK_METHOD1(AddCaptureStreamOutput, void(const AudioFrame& frame));
|
|
|
|
|
MOCK_METHOD1(AddAudioProcessingState,
|
|
|
|
|
void(const AudioProcessingState& state));
|
|
|
|
|
MOCK_METHOD0(WriteCaptureStreamMessage, void());
|
|
|
|
|
|
|
|
|
|
MOCK_METHOD1(WriteRenderStreamMessage, void(const AudioFrame& frame));
|
2018-02-16 11:54:07 +01:00
|
|
|
MOCK_METHOD1(WriteRenderStreamMessage,
|
|
|
|
|
void(const AudioFrameView<const float>& src));
|
2017-06-08 08:12:46 -07:00
|
|
|
|
|
|
|
|
MOCK_METHOD1(WriteConfig, void(const InternalAPMConfig& config));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace test
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_AUDIO_PROCESSING_AEC_DUMP_MOCK_AEC_DUMP_H_
|