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_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLER_H
_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLER_H
_ |
| 13 |
| 14 #include "webrtc/base/array_view.h" |
| 15 #include "webrtc/base/optional.h" |
| 16 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" |
| 17 #include "webrtc/test/gmock.h" |
| 18 |
| 19 namespace webrtc { |
| 20 namespace test { |
| 21 |
| 22 class MockRenderDelayController : public RenderDelayController { |
| 23 public: |
| 24 virtual ~MockRenderDelayController() = default; |
| 25 |
| 26 MOCK_METHOD1(GetDelay, size_t(rtc::ArrayView<const float> capture)); |
| 27 MOCK_METHOD1(AnalyzeRender, bool(rtc::ArrayView<const float> capture)); |
| 28 MOCK_CONST_METHOD0(AlignmentHeadroomSamples, rtc::Optional<size_t>()); |
| 29 }; |
| 30 |
| 31 } // namespace test |
| 32 } // namespace webrtc |
| 33 |
| 34 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLE
R_H_ |
OLD | NEW |