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/unpack.cc

Issue 1886233003: Added a protobuf field for the audio processing module to store the status of experiments (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added unittest for reading of the added protobuf field Created 4 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
« no previous file with comments | « webrtc/modules/audio_processing/test/debug_dump_test.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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 PRINT_CONFIG(aecm_comfort_noise_enabled); 245 PRINT_CONFIG(aecm_comfort_noise_enabled);
246 PRINT_CONFIG(aecm_routing_mode); 246 PRINT_CONFIG(aecm_routing_mode);
247 PRINT_CONFIG(agc_enabled); 247 PRINT_CONFIG(agc_enabled);
248 PRINT_CONFIG(agc_mode); 248 PRINT_CONFIG(agc_mode);
249 PRINT_CONFIG(agc_limiter_enabled); 249 PRINT_CONFIG(agc_limiter_enabled);
250 PRINT_CONFIG(noise_robust_agc_enabled); 250 PRINT_CONFIG(noise_robust_agc_enabled);
251 PRINT_CONFIG(hpf_enabled); 251 PRINT_CONFIG(hpf_enabled);
252 PRINT_CONFIG(ns_enabled); 252 PRINT_CONFIG(ns_enabled);
253 PRINT_CONFIG(ns_level); 253 PRINT_CONFIG(ns_level);
254 PRINT_CONFIG(transient_suppression_enabled); 254 PRINT_CONFIG(transient_suppression_enabled);
255 if (msg.has_experiments_description()) {
256 fprintf(settings_file, " experiments_description: %s\n",
257 msg.experiments_description().c_str());
258 }
255 } else if (event_msg.type() == Event::INIT) { 259 } else if (event_msg.type() == Event::INIT) {
256 if (!event_msg.has_init()) { 260 if (!event_msg.has_init()) {
257 printf("Corrupt input file: Init missing.\n"); 261 printf("Corrupt input file: Init missing.\n");
258 return 1; 262 return 1;
259 } 263 }
260 264
261 const Init msg = event_msg.init(); 265 const Init msg = event_msg.init();
262 // These should print out zeros if they're missing. 266 // These should print out zeros if they're missing.
263 fprintf(settings_file, "Init at frame: %d\n", frame_count); 267 fprintf(settings_file, "Init at frame: %d\n", frame_count);
264 int input_sample_rate = msg.sample_rate(); 268 int input_sample_rate = msg.sample_rate();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 316 }
313 317
314 return 0; 318 return 0;
315 } 319 }
316 320
317 } // namespace webrtc 321 } // namespace webrtc
318 322
319 int main(int argc, char* argv[]) { 323 int main(int argc, char* argv[]) {
320 return webrtc::do_main(argc, argv); 324 return webrtc::do_main(argc, argv);
321 } 325 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/debug_dump_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698