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/aec_state.h" | 11 #include "webrtc/modules/audio_processing/aec3/aec_state.h" |
12 | 12 |
| 13 // TODO(peah): Reactivate once the next CL has landed. |
| 14 #if 0 |
| 15 |
13 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" | 16 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
14 #include "webrtc/test/gtest.h" | 17 #include "webrtc/test/gtest.h" |
15 | 18 |
16 namespace webrtc { | 19 namespace webrtc { |
17 | 20 |
18 // Verify the general functionality of AecState | 21 // Verify the general functionality of AecState |
19 TEST(AecState, NormalUsage) { | 22 TEST(AecState, NormalUsage) { |
20 ApmDataDumper data_dumper(42); | 23 ApmDataDumper data_dumper(42); |
21 AecState state; | 24 AecState state; |
22 FftBuffer X_buffer(Aec3Optimization::kNone, 30, std::vector<size_t>(1, 30)); | 25 FftBuffer X_buffer(Aec3Optimization::kNone, 30, std::vector<size_t>(1, 30)); |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 270 } |
268 | 271 |
269 // Verify that the externally reported delay is properly unset when it is no | 272 // Verify that the externally reported delay is properly unset when it is no |
270 // longer present. | 273 // longer present. |
271 state.Update(frequency_response, rtc::Optional<size_t>(), X_buffer, E2_main, | 274 state.Update(frequency_response, rtc::Optional<size_t>(), X_buffer, E2_main, |
272 E2_shadow, Y2, x, EchoPathVariability(false, false), false); | 275 E2_shadow, Y2, x, EchoPathVariability(false, false), false); |
273 EXPECT_FALSE(state.ExternalDelay()); | 276 EXPECT_FALSE(state.ExternalDelay()); |
274 } | 277 } |
275 | 278 |
276 } // namespace webrtc | 279 } // namespace webrtc |
| 280 |
| 281 #endif |
OLD | NEW |