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 "webrtc/test/rtp_file_reader.h" | 11 #include "webrtc/test/rtp_file_reader.h" |
12 | 12 |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 | 14 |
15 #include <map> | 15 #include <map> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/base/checks.h" | |
20 #include "webrtc/base/constructormagic.h" | |
21 #include "webrtc/base/format_macros.h" | |
22 #include "webrtc/base/logging.h" | |
23 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
| 20 #include "webrtc/rtc_base/checks.h" |
| 21 #include "webrtc/rtc_base/constructormagic.h" |
| 22 #include "webrtc/rtc_base/format_macros.h" |
| 23 #include "webrtc/rtc_base/logging.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 namespace test { | 26 namespace test { |
27 | 27 |
28 static const size_t kFirstLineLength = 40; | 28 static const size_t kFirstLineLength = 40; |
29 static uint16_t kPacketHeaderSize = 8; | 29 static uint16_t kPacketHeaderSize = 8; |
30 | 30 |
31 #define TRY(expr) \ | 31 #define TRY(expr) \ |
32 do { \ | 32 do { \ |
33 if (!(expr)) { \ | 33 if (!(expr)) { \ |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 return reader; | 658 return reader; |
659 } | 659 } |
660 | 660 |
661 RtpFileReader* RtpFileReader::Create(FileFormat format, | 661 RtpFileReader* RtpFileReader::Create(FileFormat format, |
662 const std::string& filename) { | 662 const std::string& filename) { |
663 return RtpFileReader::Create(format, filename, std::set<uint32_t>()); | 663 return RtpFileReader::Create(format, filename, std::set<uint32_t>()); |
664 } | 664 } |
665 | 665 |
666 } // namespace test | 666 } // namespace test |
667 } // namespace webrtc | 667 } // namespace webrtc |
OLD | NEW |