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/subtractor_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/subtractor.h" 11 #include "webrtc/modules/audio_processing/aec3/subtractor.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <numeric> 14 #include <numeric>
15 #include <string> 15 #include <string>
16 16
17 #include "webrtc/base/random.h"
17 #include "webrtc/modules/audio_processing/aec3/aec_state.h" 18 #include "webrtc/modules/audio_processing/aec3/aec_state.h"
18 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" 19 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h"
19 #include "webrtc/rtc_base/random.h"
20 #include "webrtc/test/gtest.h" 20 #include "webrtc/test/gtest.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace { 23 namespace {
24 24
25 float RunSubtractorTest(int num_blocks_to_process, 25 float RunSubtractorTest(int num_blocks_to_process,
26 int delay_samples, 26 int delay_samples,
27 bool uncorrelated_inputs, 27 bool uncorrelated_inputs,
28 const std::vector<int>& blocks_with_echo_path_changes) { 28 const std::vector<int>& blocks_with_echo_path_changes) {
29 ApmDataDumper data_dumper(42); 29 ApmDataDumper data_dumper(42);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 for (size_t delay_samples : {0, 64, 150, 200, 301}) { 162 for (size_t delay_samples : {0, 64, 150, 200, 301}) {
163 SCOPED_TRACE(ProduceDebugText(delay_samples)); 163 SCOPED_TRACE(ProduceDebugText(delay_samples));
164 164
165 float echo_to_nearend_power = RunSubtractorTest( 165 float echo_to_nearend_power = RunSubtractorTest(
166 100, delay_samples, false, blocks_with_echo_path_changes); 166 100, delay_samples, false, blocks_with_echo_path_changes);
167 EXPECT_NEAR(1.f, echo_to_nearend_power, 0.0000001f); 167 EXPECT_NEAR(1.f, echo_to_nearend_power, 0.0000001f);
168 } 168 }
169 } 169 }
170 170
171 } // namespace webrtc 171 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/subtractor.cc ('k') | webrtc/modules/audio_processing/aec3/suppression_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698