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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 427 |
428 } else if (strcmp(argv[i], "--no_progress") == 0) { | 428 } else if (strcmp(argv[i], "--no_progress") == 0) { |
429 progress = false; | 429 progress = false; |
430 | 430 |
431 } else if (strcmp(argv[i], "--raw_output") == 0) { | 431 } else if (strcmp(argv[i], "--raw_output") == 0) { |
432 raw_output = true; | 432 raw_output = true; |
433 | 433 |
434 } else if (strcmp(argv[i], "--debug_file") == 0) { | 434 } else if (strcmp(argv[i], "--debug_file") == 0) { |
435 i++; | 435 i++; |
436 ASSERT_LT(i, argc) << "Specify filename after --debug_file"; | 436 ASSERT_LT(i, argc) << "Specify filename after --debug_file"; |
437 ASSERT_EQ(apm->kNoError, apm->StartDebugRecording(argv[i], -1)); | 437 ASSERT_EQ(apm->kNoError, apm->StartDebugRecording(argv[i])); |
438 } else { | 438 } else { |
439 FAIL() << "Unrecognized argument " << argv[i]; | 439 FAIL() << "Unrecognized argument " << argv[i]; |
440 } | 440 } |
441 } | 441 } |
442 apm->SetExtraOptions(config); | 442 apm->SetExtraOptions(config); |
443 | 443 |
444 // If we're reading a protobuf file, ensure a simulation hasn't also | 444 // If we're reading a protobuf file, ensure a simulation hasn't also |
445 // been requested (which makes no sense...) | 445 // been requested (which makes no sense...) |
446 ASSERT_FALSE(pb_filename && simulating); | 446 ASSERT_FALSE(pb_filename && simulating); |
447 | 447 |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 } // namespace | 1141 } // namespace |
1142 } // namespace webrtc | 1142 } // namespace webrtc |
1143 | 1143 |
1144 int main(int argc, char* argv[]) { | 1144 int main(int argc, char* argv[]) { |
1145 webrtc::void_main(argc, argv); | 1145 webrtc::void_main(argc, argv); |
1146 | 1146 |
1147 // Optional, but removes memory leak noise from Valgrind. | 1147 // Optional, but removes memory leak noise from Valgrind. |
1148 google::protobuf::ShutdownProtobufLibrary(); | 1148 google::protobuf::ShutdownProtobufLibrary(); |
1149 return 0; | 1149 return 0; |
1150 } | 1150 } |
OLD | NEW |