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 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" | 11 #include "webrtc/modules/audio_processing/aec3/render_delay_controller.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <memory> | 14 #include <memory> |
15 #include <sstream> | 15 #include <sstream> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
| 19 #include "webrtc/base/random.h" |
19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 20 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
20 #include "webrtc/modules/audio_processing/aec3/block_processor.h" | 21 #include "webrtc/modules/audio_processing/aec3/block_processor.h" |
21 #include "webrtc/modules/audio_processing/aec3/decimator_by_4.h" | 22 #include "webrtc/modules/audio_processing/aec3/decimator_by_4.h" |
22 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" | 23 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" |
23 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" | 24 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
24 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" | 25 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" |
25 #include "webrtc/rtc_base/random.h" | |
26 #include "webrtc/test/gtest.h" | 26 #include "webrtc/test/gtest.h" |
27 | 27 |
28 namespace webrtc { | 28 namespace webrtc { |
29 namespace { | 29 namespace { |
30 | 30 |
31 std::string ProduceDebugText(int sample_rate_hz) { | 31 std::string ProduceDebugText(int sample_rate_hz) { |
32 std::ostringstream ss; | 32 std::ostringstream ss; |
33 ss << "Sample rate: " << sample_rate_hz; | 33 ss << "Sample rate: " << sample_rate_hz; |
34 return ss.str(); | 34 return ss.str(); |
35 } | 35 } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 RenderDelayBuffer::Create(NumBandsForRate(rate))); | 221 RenderDelayBuffer::Create(NumBandsForRate(rate))); |
222 EXPECT_DEATH(std::unique_ptr<RenderDelayController>( | 222 EXPECT_DEATH(std::unique_ptr<RenderDelayController>( |
223 RenderDelayController::Create(rate)), | 223 RenderDelayController::Create(rate)), |
224 ""); | 224 ""); |
225 } | 225 } |
226 } | 226 } |
227 | 227 |
228 #endif | 228 #endif |
229 | 229 |
230 } // namespace webrtc | 230 } // namespace webrtc |
OLD | NEW |