Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: webrtc/modules/audio_processing/aec3/mock/mock_render_delay_controller.h

Issue 3007763002: Move array_view.h to webrtc/api/ (Closed)
Patch Set: rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/api/array_view.h"
14 #include "webrtc/modules/audio_processing/aec3/downsampled_render_buffer.h" 15 #include "webrtc/modules/audio_processing/aec3/downsampled_render_buffer.h"
15 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" 16 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h"
16 #include "webrtc/rtc_base/array_view.h"
17 #include "webrtc/rtc_base/optional.h" 17 #include "webrtc/rtc_base/optional.h"
18 #include "webrtc/test/gmock.h" 18 #include "webrtc/test/gmock.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 namespace test { 21 namespace test {
22 22
23 class MockRenderDelayController : public RenderDelayController { 23 class MockRenderDelayController : public RenderDelayController {
24 public: 24 public:
25 virtual ~MockRenderDelayController() = default; 25 virtual ~MockRenderDelayController() = default;
26 26
27 MOCK_METHOD0(Reset, void()); 27 MOCK_METHOD0(Reset, void());
28 MOCK_METHOD1(SetDelay, void(size_t render_delay)); 28 MOCK_METHOD1(SetDelay, void(size_t render_delay));
29 MOCK_METHOD2(GetDelay, 29 MOCK_METHOD2(GetDelay,
30 size_t(const DownsampledRenderBuffer& render_buffer, 30 size_t(const DownsampledRenderBuffer& render_buffer,
31 rtc::ArrayView<const float> capture)); 31 rtc::ArrayView<const float> capture));
32 MOCK_CONST_METHOD0(AlignmentHeadroomSamples, rtc::Optional<size_t>()); 32 MOCK_CONST_METHOD0(AlignmentHeadroomSamples, rtc::Optional<size_t>());
33 }; 33 };
34 34
35 } // namespace test 35 } // namespace test
36 } // namespace webrtc 36 } // namespace webrtc
37 37
38 #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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698