Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 363 " not supported or unknown." << std::endl; | 363 " not supported or unknown." << std::endl; |
| 364 Trace::ReturnTrace(); | 364 Trace::ReturnTrace(); |
| 365 exit(1); | 365 exit(1); |
| 366 } | 366 } |
| 367 } | 367 } |
| 368 return payload_len; | 368 return payload_len; |
| 369 } | 369 } |
| 370 | 370 |
| 371 } // namespace | 371 } // namespace |
| 372 | 372 |
| 373 int main(int argc, char* argv[]) { | 373 int RunTest(int argc, char* argv[]) { |
|
ivoc
2016/05/26 08:38:11
Is it necessary for this function to be outside of
hlundin-webrtc
2016/05/26 11:20:59
No, you are right. I fixed that.
| |
| 374 static const int kOutputBlockSizeMs = 10; | 374 static const int kOutputBlockSizeMs = 10; |
| 375 | 375 |
| 376 std::string program_name = argv[0]; | 376 std::string program_name = argv[0]; |
| 377 std::string usage = "Tool for decoding an RTP dump file using NetEq.\n" | 377 std::string usage = "Tool for decoding an RTP dump file using NetEq.\n" |
| 378 "Run " + program_name + " --helpshort for usage.\n" | 378 "Run " + program_name + " --helpshort for usage.\n" |
| 379 "Example usage:\n" + program_name + | 379 "Example usage:\n" + program_name + |
| 380 " input.rtp output.{pcm, wav}\n"; | 380 " input.rtp output.{pcm, wav}\n"; |
| 381 google::SetUsageMessage(usage); | 381 google::SetUsageMessage(usage); |
| 382 google::ParseCommandLineFlags(&argc, &argv, true); | 382 google::ParseCommandLineFlags(&argc, &argv, true); |
| 383 | 383 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 627 printf("Produced %i ms of audio\n", | 627 printf("Produced %i ms of audio\n", |
| 628 static_cast<int>(time_now_ms - start_time_ms)); | 628 static_cast<int>(time_now_ms - start_time_ms)); |
| 629 | 629 |
| 630 delete neteq; | 630 delete neteq; |
| 631 Trace::ReturnTrace(); | 631 Trace::ReturnTrace(); |
| 632 return 0; | 632 return 0; |
| 633 } | 633 } |
| 634 | 634 |
| 635 } // namespace test | 635 } // namespace test |
| 636 } // namespace webrtc | 636 } // namespace webrtc |
| 637 | |
| 638 int main(int argc, char* argv[]) { | |
| 639 webrtc::test::RunTest(argc, argv); | |
| 640 } | |
| OLD | NEW |