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 | |
11 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" | 10 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" |
12 | 11 |
13 namespace media { | 12 namespace media { |
14 namespace cast { | 13 namespace cast { |
15 | 14 |
16 class RtpPacketBuilder { | 15 class RtpPacketBuilder { |
17 public: | 16 public: |
18 RtpPacketBuilder(); | 17 RtpPacketBuilder(); |
19 void SetKeyFrame(bool is_key); | 18 void SetKeyFrame(bool is_key); |
20 void SetFrameId(uint32 frame_id); | 19 void SetFrameId(uint32 frame_id); |
(...skipping 15 matching lines...) Expand all Loading... |
36 uint32 reference_frame_id_; | 35 uint32 reference_frame_id_; |
37 bool is_reference_set_; | 36 bool is_reference_set_; |
38 uint32 timestamp_; | 37 uint32 timestamp_; |
39 uint16 sequence_number_; | 38 uint16 sequence_number_; |
40 bool marker_; | 39 bool marker_; |
41 int payload_type_; | 40 int payload_type_; |
42 uint32 ssrc_; | 41 uint32 ssrc_; |
43 | 42 |
44 void BuildCastHeader(uint8* data, uint32 data_length); | 43 void BuildCastHeader(uint8* data, uint32 data_length); |
45 void BuildCommonHeader(uint8* data, uint32 data_length); | 44 void BuildCommonHeader(uint8* data, uint32 data_length); |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(RtpPacketBuilder); |
46 }; | 47 }; |
47 | 48 |
48 } // namespace cast | 49 } // namespace cast |
49 } // namespace media | 50 } // namespace media |
50 | 51 |
51 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ | 52 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_ |
OLD | NEW |