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

Side by Side Diff: webrtc/modules/audio_processing/test/process_test.cc

Issue 1151573021: Re-land r9378 "Rename APM Config DelayCorrection to ExtendedFilter" (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: New line Created 5 years, 6 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
« no previous file with comments | « webrtc/modules/audio_processing/test/audio_processing_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 i++; 251 i++;
252 ASSERT_LT(i, argc) << "Specify level after --aec_suppression_level"; 252 ASSERT_LT(i, argc) << "Specify level after --aec_suppression_level";
253 int suppression_level; 253 int suppression_level;
254 ASSERT_EQ(1, sscanf(argv[i], "%d", &suppression_level)); 254 ASSERT_EQ(1, sscanf(argv[i], "%d", &suppression_level));
255 ASSERT_EQ(apm->kNoError, 255 ASSERT_EQ(apm->kNoError,
256 apm->echo_cancellation()->set_suppression_level( 256 apm->echo_cancellation()->set_suppression_level(
257 static_cast<webrtc::EchoCancellation::SuppressionLevel>( 257 static_cast<webrtc::EchoCancellation::SuppressionLevel>(
258 suppression_level))); 258 suppression_level)));
259 259
260 } else if (strcmp(argv[i], "--extended_filter") == 0) { 260 } else if (strcmp(argv[i], "--extended_filter") == 0) {
261 config.Set<DelayCorrection>(new DelayCorrection(true)); 261 config.Set<ExtendedFilter>(new ExtendedFilter(true));
262 262
263 } else if (strcmp(argv[i], "--no_reported_delay") == 0) { 263 } else if (strcmp(argv[i], "--no_reported_delay") == 0) {
264 config.Set<ReportedDelay>(new ReportedDelay(false)); 264 config.Set<ReportedDelay>(new ReportedDelay(false));
265 265
266 } else if (strcmp(argv[i], "-aecm") == 0) { 266 } else if (strcmp(argv[i], "-aecm") == 0) {
267 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); 267 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true));
268 268
269 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { 269 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) {
270 i++; 270 i++;
271 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; 271 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file";
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 } // namespace 1136 } // namespace
1137 } // namespace webrtc 1137 } // namespace webrtc
1138 1138
1139 int main(int argc, char* argv[]) { 1139 int main(int argc, char* argv[]) {
1140 webrtc::void_main(argc, argv); 1140 webrtc::void_main(argc, argv);
1141 1141
1142 // Optional, but removes memory leak noise from Valgrind. 1142 // Optional, but removes memory leak noise from Valgrind.
1143 google::protobuf::ShutdownProtobufLibrary(); 1143 google::protobuf::ShutdownProtobufLibrary();
1144 return 0; 1144 return 0;
1145 } 1145 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/audio_processing_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698