| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLER_H
_ | 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
_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLER_H
_ |
| 13 | 13 |
| 14 #include "webrtc/base/array_view.h" | 14 #include "webrtc/base/array_view.h" |
| 15 #include "webrtc/base/optional.h" | 15 #include "webrtc/base/optional.h" |
| 16 #include "webrtc/modules/audio_processing/aec3/downsampled_render_buffer.h" |
| 16 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" | 17 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" |
| 17 #include "webrtc/test/gmock.h" | 18 #include "webrtc/test/gmock.h" |
| 18 | 19 |
| 19 namespace webrtc { | 20 namespace webrtc { |
| 20 namespace test { | 21 namespace test { |
| 21 | 22 |
| 22 class MockRenderDelayController : public RenderDelayController { | 23 class MockRenderDelayController : public RenderDelayController { |
| 23 public: | 24 public: |
| 24 virtual ~MockRenderDelayController() = default; | 25 virtual ~MockRenderDelayController() = default; |
| 25 | 26 |
| 26 MOCK_METHOD1(GetDelay, size_t(rtc::ArrayView<const float> capture)); | 27 MOCK_METHOD0(Reset, void()); |
| 27 MOCK_METHOD1(AnalyzeRender, bool(rtc::ArrayView<const float> capture)); | 28 MOCK_METHOD1(SetDelay, void(size_t render_delay)); |
| 29 MOCK_METHOD2(GetDelay, |
| 30 size_t(const DownsampledRenderBuffer& render_buffer, |
| 31 rtc::ArrayView<const float> capture)); |
| 28 MOCK_CONST_METHOD0(AlignmentHeadroomSamples, rtc::Optional<size_t>()); | 32 MOCK_CONST_METHOD0(AlignmentHeadroomSamples, rtc::Optional<size_t>()); |
| 29 }; | 33 }; |
| 30 | 34 |
| 31 } // namespace test | 35 } // namespace test |
| 32 } // namespace webrtc | 36 } // namespace webrtc |
| 33 | 37 |
| 34 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLE
R_H_ | 38 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLE
R_H_ |
| OLD | NEW |