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

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

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 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/shadow_filter_update_gain.h" 11 #include "webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <numeric> 14 #include <numeric>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/random.h"
19 #include "webrtc/base/safe_minmax.h"
18 #include "webrtc/modules/audio_processing/aec3/adaptive_fir_filter.h" 20 #include "webrtc/modules/audio_processing/aec3/adaptive_fir_filter.h"
19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 21 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
20 #include "webrtc/modules/audio_processing/aec3/aec_state.h" 22 #include "webrtc/modules/audio_processing/aec3/aec_state.h"
21 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" 23 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h"
22 #include "webrtc/rtc_base/random.h"
23 #include "webrtc/rtc_base/safe_minmax.h"
24 #include "webrtc/test/gtest.h" 24 #include "webrtc/test/gtest.h"
25 25
26 namespace webrtc { 26 namespace webrtc {
27 namespace { 27 namespace {
28 28
29 // Method for performing the simulations needed to test the main filter update 29 // Method for performing the simulations needed to test the main filter update
30 // gain functionality. 30 // gain functionality.
31 void RunFilterUpdateTest(int num_blocks_to_process, 31 void RunFilterUpdateTest(int num_blocks_to_process,
32 size_t delay_samples, 32 size_t delay_samples,
33 const std::vector<int>& blocks_with_saturation, 33 const std::vector<int>& blocks_with_saturation,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 G_a_ref.re.fill(0.f); 178 G_a_ref.re.fill(0.f);
179 G_a_ref.im.fill(0.f); 179 G_a_ref.im.fill(0.f);
180 180
181 RunFilterUpdateTest(100, 65, blocks_with_saturation, &e, &y, &G_a); 181 RunFilterUpdateTest(100, 65, blocks_with_saturation, &e, &y, &G_a);
182 182
183 EXPECT_EQ(G_a_ref.re, G_a.re); 183 EXPECT_EQ(G_a_ref.re, G_a.re);
184 EXPECT_EQ(G_a_ref.im, G_a.im); 184 EXPECT_EQ(G_a_ref.im, G_a.im);
185 } 185 }
186 186
187 } // namespace webrtc 187 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.cc ('k') | webrtc/modules/audio_processing/aec3/subtractor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698