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

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

Issue 3002963002: Revert 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\n"); 387 printf("No value provided for BottleNeck and cannot read file %s\n",
388 FAIL() << "Cannot read file " << bottleneck_file; 388 bottleneck_file);
389 exit(0); // TODO(oprypin): don't silence this error
390 // FAIL() << "Cannot read file " << bottleneck_file;
389 } else { 391 } else {
390 int aux_var; 392 int aux_var;
391 printf("reading bottleneck rates from file %s\n\n",bottleneck_file); 393 printf("reading bottleneck rates from file %s\n\n",bottleneck_file);
392 if (fscanf(f_bn, "%d", &aux_var) == EOF) { 394 if (fscanf(f_bn, "%d", &aux_var) == EOF) {
393 /* Set pointer to beginning of file */ 395 /* Set pointer to beginning of file */
394 fseek(f_bn, 0L, SEEK_SET); 396 fseek(f_bn, 0L, SEEK_SET);
395 if (fscanf(f_bn, "%d", &aux_var) == EOF) { 397 if (fscanf(f_bn, "%d", &aux_var) == EOF) {
396 FAIL(); 398 FAIL();
397 } 399 }
398 } 400 }
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 WebRtcIsacfix_Free(ISAC_main_inst); 838 WebRtcIsacfix_Free(ISAC_main_inst);
837 } 839 }
838 840
839 int main(int argc, char* argv[]) { 841 int main(int argc, char* argv[]) {
840 ::testing::InitGoogleTest(&argc, argv); 842 ::testing::InitGoogleTest(&argc, argv);
841 global_argc = argc; 843 global_argc = argc;
842 global_argv = argv; 844 global_argv = argv;
843 845
844 return RUN_ALL_TESTS(); 846 return RUN_ALL_TESTS();
845 } 847 }
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