OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Test helper class that builds rtp packets. | 5 // Test helper class that builds rtp packets. |
6 | 6 |
7 #ifndef MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ | 7 #ifndef MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ |
8 #define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ | 8 #define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ |
9 | 9 |
10 | 10 |
11 #include "media/cast/rtp_common/rtp_defines.h" | 11 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 namespace cast { | 14 namespace cast { |
15 | 15 |
16 class RtpPacketBuilder { | 16 class RtpPacketBuilder { |
17 public: | 17 public: |
18 RtpPacketBuilder(); | 18 RtpPacketBuilder(); |
19 void SetKeyFrame(bool is_key); | 19 void SetKeyFrame(bool is_key); |
20 void SetFrameId(uint32 frame_id); | 20 void SetFrameId(uint32 frame_id); |
21 void SetPacketId(uint16 packet_id); | 21 void SetPacketId(uint16 packet_id); |
(...skipping 20 matching lines...) Expand all Loading... |
42 uint32 ssrc_; | 42 uint32 ssrc_; |
43 | 43 |
44 void BuildCastHeader(uint8* data, uint32 data_length); | 44 void BuildCastHeader(uint8* data, uint32 data_length); |
45 void BuildCommonHeader(uint8* data, uint32 data_length); | 45 void BuildCommonHeader(uint8* data, uint32 data_length); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace cast | 48 } // namespace cast |
49 } // namespace media | 49 } // namespace media |
50 | 50 |
51 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ | 51 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ |
OLD | NEW |