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/echo_remover.h" | 11 #include "webrtc/modules/audio_processing/aec3/echo_remover.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <memory> | 14 #include <memory> |
15 #include <numeric> | 15 #include <numeric> |
16 #include <sstream> | 16 #include <sstream> |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 #include "webrtc/base/random.h" | |
20 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
21 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" | 20 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" |
22 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" | 21 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" |
23 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" | 22 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
24 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" | 23 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" |
| 24 #include "webrtc/rtc_base/random.h" |
25 #include "webrtc/test/gtest.h" | 25 #include "webrtc/test/gtest.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 namespace { | 28 namespace { |
29 | 29 |
30 std::string ProduceDebugText(int sample_rate_hz) { | 30 std::string ProduceDebugText(int sample_rate_hz) { |
31 std::ostringstream ss; | 31 std::ostringstream ss; |
32 ss << "Sample rate: " << sample_rate_hz; | 32 ss << "Sample rate: " << sample_rate_hz; |
33 return ss.str(); | 33 return ss.str(); |
34 } | 34 } |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 y[j].begin(), output_energy); | 193 y[j].begin(), output_energy); |
194 } | 194 } |
195 } | 195 } |
196 } | 196 } |
197 EXPECT_GT(input_energy, 10.f * output_energy); | 197 EXPECT_GT(input_energy, 10.f * output_energy); |
198 } | 198 } |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 } // namespace webrtc | 202 } // namespace webrtc |
OLD | NEW |