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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc

Issue 2999383002: Reland of Stop silently accepting unsupported flags in test binaries (Closed)
Patch Set: Created 3 years, 4 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 | « tools_webrtc/valgrind/webrtc_tests.py ('k') | webrtc/test/test_main.cc » ('j') | 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 377 }
378 } 378 }
379 379
380 /* Get Bottleneck value */ 380 /* Get Bottleneck value */
381 /* Gns files and bottleneck should not and can not be used simultaneously */ 381 /* Gns files and bottleneck should not and can not be used simultaneously */
382 bottleneck = atoi(argv[CodingMode+1]); 382 bottleneck = atoi(argv[CodingMode+1]);
383 if (bottleneck == 0 && gns == 0) { 383 if (bottleneck == 0 && gns == 0) {
384 sscanf(argv[CodingMode+1], "%s", bottleneck_file); 384 sscanf(argv[CodingMode+1], "%s", bottleneck_file);
385 f_bn = fopen(bottleneck_file, "rb"); 385 f_bn = fopen(bottleneck_file, "rb");
386 if (f_bn == NULL) { 386 if (f_bn == NULL) {
387 printf("No value provided for BottleNeck and cannot read file %s\n", 387 printf("No value provided for BottleNeck\n");
388 bottleneck_file); 388 FAIL() << "Cannot read file " << bottleneck_file;
389 exit(0); // TODO(oprypin): don't silence this error
390 // FAIL() << "Cannot read file " << bottleneck_file;
391 } else { 389 } else {
392 int aux_var; 390 int aux_var;
393 printf("reading bottleneck rates from file %s\n\n",bottleneck_file); 391 printf("reading bottleneck rates from file %s\n\n",bottleneck_file);
394 if (fscanf(f_bn, "%d", &aux_var) == EOF) { 392 if (fscanf(f_bn, "%d", &aux_var) == EOF) {
395 /* Set pointer to beginning of file */ 393 /* Set pointer to beginning of file */
396 fseek(f_bn, 0L, SEEK_SET); 394 fseek(f_bn, 0L, SEEK_SET);
397 if (fscanf(f_bn, "%d", &aux_var) == EOF) { 395 if (fscanf(f_bn, "%d", &aux_var) == EOF) {
398 FAIL(); 396 FAIL();
399 } 397 }
400 } 398 }
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 WebRtcIsacfix_Free(ISAC_main_inst); 836 WebRtcIsacfix_Free(ISAC_main_inst);
839 } 837 }
840 838
841 int main(int argc, char* argv[]) { 839 int main(int argc, char* argv[]) {
842 ::testing::InitGoogleTest(&argc, argv); 840 ::testing::InitGoogleTest(&argc, argv);
843 global_argc = argc; 841 global_argc = argc;
844 global_argv = argv; 842 global_argv = argv;
845 843
846 return RUN_ALL_TESTS(); 844 return RUN_ALL_TESTS();
847 } 845 }
OLDNEW
« no previous file with comments | « tools_webrtc/valgrind/webrtc_tests.py ('k') | webrtc/test/test_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698