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_path_delay_estimator.h" | 11 #include "webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <sstream> | 14 #include <sstream> |
15 #include <string> | 15 #include <string> |
16 | 16 |
| 17 #include "webrtc/base/random.h" |
17 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
18 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" | 19 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" |
19 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" | 20 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
20 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" | 21 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" |
21 #include "webrtc/rtc_base/random.h" | |
22 #include "webrtc/test/gtest.h" | 22 #include "webrtc/test/gtest.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace { | 25 namespace { |
26 | 26 |
27 std::string ProduceDebugText(size_t delay) { | 27 std::string ProduceDebugText(size_t delay) { |
28 std::ostringstream ss; | 28 std::ostringstream ss; |
29 ss << "Delay: " << delay; | 29 ss << "Delay: " << delay; |
30 return ss.str(); | 30 return ss.str(); |
31 } | 31 } |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 } | 176 } |
177 | 177 |
178 // Verifies the check for non-null data dumper. | 178 // Verifies the check for non-null data dumper. |
179 TEST(EchoPathDelayEstimator, NullDataDumper) { | 179 TEST(EchoPathDelayEstimator, NullDataDumper) { |
180 EXPECT_DEATH(EchoPathDelayEstimator(nullptr), ""); | 180 EXPECT_DEATH(EchoPathDelayEstimator(nullptr), ""); |
181 } | 181 } |
182 | 182 |
183 #endif | 183 #endif |
184 | 184 |
185 } // namespace webrtc | 185 } // namespace webrtc |
OLD | NEW |