| 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 // A very simple packet builder class for building RTCP packets. | 5 // A very simple packet builder class for building RTCP packets. |
| 6 // Used for testing only. | 6 // Used for testing only. |
| 7 #ifndef MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ | 7 #ifndef MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ |
| 8 #define MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ | 8 #define MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ |
| 9 | 9 |
| 10 #include "base/big_endian.h" | 10 #include "base/big_endian.h" |
| 11 #include "media/cast/cast_config.h" | 11 #include "media/cast/cast_config.h" |
| 12 #include "media/cast/rtcp/rtcp_defines.h" | 12 #include "media/cast/net/cast_transport_defines.h" |
| 13 #include "media/cast/net/rtcp/rtcp_defines.h" |
| 13 | 14 |
| 14 namespace media { | 15 namespace media { |
| 15 namespace cast { | 16 namespace cast { |
| 16 | 17 |
| 17 // These values are arbitrary only for the purpose of testing. | 18 // These values are arbitrary only for the purpose of testing. |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 // Sender report. | 21 // Sender report. |
| 21 static const int kNtpHigh = 0x01020304; | 22 static const int kNtpHigh = 0x01020304; |
| 22 static const int kNtpLow = 0x05060708; | 23 static const int kNtpLow = 0x05060708; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 char* ptr_of_length_; | 105 char* ptr_of_length_; |
| 105 base::BigEndianWriter big_endian_writer_; | 106 base::BigEndianWriter big_endian_writer_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(TestRtcpPacketBuilder); | 108 DISALLOW_COPY_AND_ASSIGN(TestRtcpPacketBuilder); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace cast | 111 } // namespace cast |
| 111 } // namespace media | 112 } // namespace media |
| 112 | 113 |
| 113 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ | 114 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ |
| OLD | NEW |