OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 #include <memory> | 14 #include <memory> |
15 #include <sstream> | 15 #include <sstream> |
16 | 16 |
17 #include "gflags/gflags.h" | 17 #include "gflags/gflags.h" |
| 18 #include "webrtc/api/video_codecs/video_decoder.h" |
18 #include "webrtc/base/checks.h" | 19 #include "webrtc/base/checks.h" |
19 #include "webrtc/call/call.h" | 20 #include "webrtc/call/call.h" |
20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
21 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 22 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
22 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 23 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
23 #include "webrtc/system_wrappers/include/clock.h" | 24 #include "webrtc/system_wrappers/include/clock.h" |
24 #include "webrtc/system_wrappers/include/sleep.h" | 25 #include "webrtc/system_wrappers/include/sleep.h" |
25 #include "webrtc/test/encoder_settings.h" | 26 #include "webrtc/test/encoder_settings.h" |
26 #include "webrtc/test/fake_decoder.h" | 27 #include "webrtc/test/fake_decoder.h" |
27 #include "webrtc/test/gtest.h" | 28 #include "webrtc/test/gtest.h" |
28 #include "webrtc/test/null_transport.h" | 29 #include "webrtc/test/null_transport.h" |
29 #include "webrtc/test/rtp_file_reader.h" | 30 #include "webrtc/test/rtp_file_reader.h" |
30 #include "webrtc/test/run_loop.h" | 31 #include "webrtc/test/run_loop.h" |
31 #include "webrtc/test/run_test.h" | 32 #include "webrtc/test/run_test.h" |
32 #include "webrtc/test/video_capturer.h" | 33 #include "webrtc/test/video_capturer.h" |
33 #include "webrtc/test/video_renderer.h" | 34 #include "webrtc/test/video_renderer.h" |
34 #include "webrtc/typedefs.h" | 35 #include "webrtc/typedefs.h" |
35 #include "webrtc/video_decoder.h" | |
36 | 36 |
37 namespace webrtc { | 37 namespace webrtc { |
38 namespace flags { | 38 namespace flags { |
39 | 39 |
40 // TODO(pbos): Multiple receivers. | 40 // TODO(pbos): Multiple receivers. |
41 | 41 |
42 // Flag for payload type. | 42 // Flag for payload type. |
43 static bool ValidatePayloadType(const char* flagname, int32_t payload_type) { | 43 static bool ValidatePayloadType(const char* flagname, int32_t payload_type) { |
44 return payload_type > 0 && payload_type <= 127; | 44 return payload_type > 0 && payload_type <= 127; |
45 } | 45 } |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 327 } |
328 } // namespace webrtc | 328 } // namespace webrtc |
329 | 329 |
330 int main(int argc, char* argv[]) { | 330 int main(int argc, char* argv[]) { |
331 ::testing::InitGoogleTest(&argc, argv); | 331 ::testing::InitGoogleTest(&argc, argv); |
332 google::ParseCommandLineFlags(&argc, &argv, true); | 332 google::ParseCommandLineFlags(&argc, &argv, true); |
333 | 333 |
334 webrtc::test::RunTest(webrtc::RtpReplay); | 334 webrtc::test::RunTest(webrtc::RtpReplay); |
335 return 0; | 335 return 0; |
336 } | 336 } |
OLD | NEW |