| 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/residual_echo_estimator.h" | 11 #include "webrtc/modules/audio_processing/aec3/residual_echo_estimator.h" |
| 12 | 12 |
| 13 // TODO(peah): Reactivate once the next CL has landed. |
| 14 #if 0 |
| 13 #include "webrtc/base/random.h" | 15 #include "webrtc/base/random.h" |
| 14 #include "webrtc/modules/audio_processing/aec3/aec_state.h" | 16 #include "webrtc/modules/audio_processing/aec3/aec_state.h" |
| 15 #include "webrtc/modules/audio_processing/aec3/aec3_fft.h" | 17 #include "webrtc/modules/audio_processing/aec3/aec3_fft.h" |
| 16 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" | 18 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" |
| 17 #include "webrtc/test/gtest.h" | 19 #include "webrtc/test/gtest.h" |
| 18 | 20 |
| 19 namespace webrtc { | 21 namespace webrtc { |
| 20 | 22 |
| 21 #if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID) | 23 #if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID) |
| 22 | 24 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 Y2, x, echo_path_variability, false); | 80 Y2, x, echo_path_variability, false); |
| 79 | 81 |
| 80 estimator.Estimate(true, aec_state, X_buffer, H2, E2_main, E2_shadow, | 82 estimator.Estimate(true, aec_state, X_buffer, H2, E2_main, E2_shadow, |
| 81 S2_linear, S2_fallback, Y2, &R2); | 83 S2_linear, S2_fallback, Y2, &R2); |
| 82 } | 84 } |
| 83 std::for_each(R2.begin(), R2.end(), | 85 std::for_each(R2.begin(), R2.end(), |
| 84 [&](float a) { EXPECT_NEAR(kLevel, a, 0.1f); }); | 86 [&](float a) { EXPECT_NEAR(kLevel, a, 0.1f); }); |
| 85 } | 87 } |
| 86 | 88 |
| 87 } // namespace webrtc | 89 } // namespace webrtc |
| 90 |
| 91 #endif |
| OLD | NEW |