• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLER_H_
12 #define MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLER_H_
13 
14 #include "absl/types/optional.h"
15 #include "api/array_view.h"
16 #include "modules/audio_processing/aec3/downsampled_render_buffer.h"
17 #include "modules/audio_processing/aec3/render_delay_controller.h"
18 #include "test/gmock.h"
19 
20 namespace webrtc {
21 namespace test {
22 
23 class MockRenderDelayController : public RenderDelayController {
24  public:
25   MockRenderDelayController();
26   virtual ~MockRenderDelayController();
27 
28   MOCK_METHOD(void, Reset, (bool reset_delay_statistics), (override));
29   MOCK_METHOD(void, LogRenderCall, (), (override));
30   MOCK_METHOD(absl::optional<DelayEstimate>,
31               GetDelay,
32               (const DownsampledRenderBuffer& render_buffer,
33                size_t render_delay_buffer_delay,
34                const std::vector<std::vector<float>>& capture),
35               (override));
36   MOCK_METHOD(bool, HasClockdrift, (), (const, override));
37 };
38 
39 }  // namespace test
40 }  // namespace webrtc
41 
42 #endif  // MODULES_AUDIO_PROCESSING_AEC3_MOCK_MOCK_RENDER_DELAY_CONTROLLER_H_
43