| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|