Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/modules/audio_processing/aec3/render_signal_analyzer_unittest.cc

Issue 2784023002: Major AEC3 render pipeline changes (Closed)
Patch Set: Disabled one more DEATH test that caused issues due to bug on bots Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_signal_analyzer.h" 11 #include "webrtc/modules/audio_processing/aec3/render_signal_analyzer.h"
12 12
13 // TODO(peah): Reactivate once the next CL has landed.
14 #if 0
15
13 #include <math.h> 16 #include <math.h>
14 #include <array> 17 #include <array>
15 #include <vector> 18 #include <vector>
16 19
17 #include "webrtc/base/array_view.h" 20 #include "webrtc/base/array_view.h"
18 #include "webrtc/base/random.h" 21 #include "webrtc/base/random.h"
19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 22 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
20 #include "webrtc/modules/audio_processing/aec3/aec3_fft.h" 23 #include "webrtc/modules/audio_processing/aec3/aec3_fft.h"
21 #include "webrtc/modules/audio_processing/aec3/fft_buffer.h" 24 #include "webrtc/modules/audio_processing/aec3/fft_buffer.h"
22 #include "webrtc/modules/audio_processing/aec3/fft_data.h" 25 #include "webrtc/modules/audio_processing/aec3/fft_data.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 117
115 // Verify that no bands are detected as narrow when the delay is unknown. 118 // Verify that no bands are detected as narrow when the delay is unknown.
116 generate_sinusoid_test(false); 119 generate_sinusoid_test(false);
117 mask.fill(1.f); 120 mask.fill(1.f);
118 analyzer.MaskRegionsAroundNarrowBands(&mask); 121 analyzer.MaskRegionsAroundNarrowBands(&mask);
119 std::for_each(mask.begin(), mask.end(), [](float a) { EXPECT_EQ(1.f, a); }); 122 std::for_each(mask.begin(), mask.end(), [](float a) { EXPECT_EQ(1.f, a); });
120 EXPECT_FALSE(analyzer.PoorSignalExcitation()); 123 EXPECT_FALSE(analyzer.PoorSignalExcitation());
121 } 124 }
122 125
123 } // namespace webrtc 126 } // namespace webrtc
127
128 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698