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/base/checks.h" | |
12 #include "webrtc/base/logging.h" | |
13 #include "webrtc/test/rtcp_packet_parser.h" | 11 #include "webrtc/test/rtcp_packet_parser.h" |
| 12 #include "webrtc/rtc_base/checks.h" |
| 13 #include "webrtc/rtc_base/logging.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 namespace test { | 16 namespace test { |
17 | 17 |
18 RtcpPacketParser::RtcpPacketParser() = default; | 18 RtcpPacketParser::RtcpPacketParser() = default; |
19 RtcpPacketParser::~RtcpPacketParser() = default; | 19 RtcpPacketParser::~RtcpPacketParser() = default; |
20 | 20 |
21 bool RtcpPacketParser::Parse(const void* data, size_t length) { | 21 bool RtcpPacketParser::Parse(const void* data, size_t length) { |
22 const uint8_t* const buffer = static_cast<const uint8_t*>(data); | 22 const uint8_t* const buffer = static_cast<const uint8_t*>(data); |
23 const uint8_t* const buffer_end = buffer + length; | 23 const uint8_t* const buffer_end = buffer + length; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 default: | 96 default: |
97 LOG(LS_WARNING) << "Unknown rtcp packet type " << header.type(); | 97 LOG(LS_WARNING) << "Unknown rtcp packet type " << header.type(); |
98 break; | 98 break; |
99 } | 99 } |
100 } | 100 } |
101 return true; | 101 return true; |
102 } | 102 } |
103 | 103 |
104 } // namespace test | 104 } // namespace test |
105 } // namespace webrtc | 105 } // namespace webrtc |
OLD | NEW |