1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Utility parser for rtp packetizer unittests
6 #ifndef MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_TEST_RTP_HEADER_PARSER_H_
7 #define MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_TEST_RTP_HEADER_PARSER_H_
9 #include "media/cast/rtp_common/rtp_defines.h"
14 class RtpHeaderParser {
16 RtpHeaderParser(const uint8* rtpData, size_t rtpDataLength);
19 bool Parse(RtpCastHeader* parsed_packet) const;
21 bool ParseCommon(RtpCastHeader* parsed_packet) const;
22 bool ParseCast(RtpCastHeader* parsed_packet) const;
23 const uint8* const rtp_data_begin_;
26 DISALLOW_COPY_AND_ASSIGN(RtpHeaderParser);
32 #endif // MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_TEST_RTP_HEADER_PARSER_H_