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

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

Issue 1211053006: Rename APM Config ReportedDelay to DelayAgnostic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix error in android test Created 5 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
« 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<ExtendedFilter>(new ExtendedFilter(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<DelayAgnostic>(new DelayAgnostic(true));
265
266 } else if (strcmp(argv[i], "--delay_agnostic") == 0) {
267 config.Set<DelayAgnostic>(new DelayAgnostic(true));
265 268
266 } else if (strcmp(argv[i], "-aecm") == 0) { 269 } else if (strcmp(argv[i], "-aecm") == 0) {
267 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); 270 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true));
268 271
269 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { 272 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) {
270 i++; 273 i++;
271 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; 274 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file";
272 aecm_echo_path_in_filename = argv[i]; 275 aecm_echo_path_in_filename = argv[i];
273 276
274 } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) { 277 } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) {
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 } // namespace 1139 } // namespace
1137 } // namespace webrtc 1140 } // namespace webrtc
1138 1141
1139 int main(int argc, char* argv[]) { 1142 int main(int argc, char* argv[]) {
1140 webrtc::void_main(argc, argv); 1143 webrtc::void_main(argc, argv);
1141 1144
1142 // Optional, but removes memory leak noise from Valgrind. 1145 // Optional, but removes memory leak noise from Valgrind.
1143 google::protobuf::ShutdownProtobufLibrary(); 1146 google::protobuf::ShutdownProtobufLibrary();
1144 return 0; 1147 return 0;
1145 } 1148 }
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