OLD | NEW |
(Empty) | |
| 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 WEBRTC_MODULES_AUDIO_PROCESSING_AEC_DUMP_MOCK_AEC_DUMP_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_DUMP_MOCK_AEC_DUMP_H_ |
| 13 |
| 14 #include <memory> |
| 15 |
| 16 #include "webrtc/modules/audio_processing/include/aec_dump.h" |
| 17 #include "webrtc/modules/include/module_common_types.h" |
| 18 #include "webrtc/test/gmock.h" |
| 19 |
| 20 namespace webrtc { |
| 21 |
| 22 namespace test { |
| 23 |
| 24 class MockAecDump : public AecDump { |
| 25 public: |
| 26 MockAecDump(); |
| 27 virtual ~MockAecDump(); |
| 28 |
| 29 MOCK_METHOD1(WriteInitMessage, |
| 30 void(const InternalAPMStreamsConfig& streams_config)); |
| 31 |
| 32 MOCK_METHOD1(AddCaptureStreamInput, void(const FloatAudioFrame& src)); |
| 33 MOCK_METHOD1(AddCaptureStreamOutput, void(const FloatAudioFrame& src)); |
| 34 MOCK_METHOD1(AddCaptureStreamInput, void(const AudioFrame& frame)); |
| 35 MOCK_METHOD1(AddCaptureStreamOutput, void(const AudioFrame& frame)); |
| 36 MOCK_METHOD1(AddAudioProcessingState, |
| 37 void(const AudioProcessingState& state)); |
| 38 MOCK_METHOD0(WriteCaptureStreamMessage, void()); |
| 39 |
| 40 MOCK_METHOD1(WriteRenderStreamMessage, void(const AudioFrame& frame)); |
| 41 MOCK_METHOD1(WriteRenderStreamMessage, void(const FloatAudioFrame& src)); |
| 42 |
| 43 MOCK_METHOD1(WriteConfig, void(const InternalAPMConfig& config)); |
| 44 }; |
| 45 |
| 46 } // namespace test |
| 47 |
| 48 } // namespace webrtc |
| 49 |
| 50 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_DUMP_MOCK_AEC_DUMP_H_ |
OLD | NEW |