| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "media/cast/net/rtp/rtp_parser.h" |
| 6 |
| 5 #include <stddef.h> | 7 #include <stddef.h> |
| 6 #include <stdint.h> | 8 #include <stdint.h> |
| 7 | 9 |
| 8 #include "base/memory/scoped_ptr.h" | 10 #include <memory> |
| 11 |
| 9 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 10 #include "media/cast/net/rtp/rtp_defines.h" | 13 #include "media/cast/net/rtp/rtp_defines.h" |
| 11 #include "media/cast/net/rtp/rtp_packet_builder.h" | 14 #include "media/cast/net/rtp/rtp_packet_builder.h" |
| 12 #include "media/cast/net/rtp/rtp_parser.h" | |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 16 |
| 15 namespace media { | 17 namespace media { |
| 16 namespace cast { | 18 namespace cast { |
| 17 | 19 |
| 18 static const size_t kPacketLength = 1500; | 20 static const size_t kPacketLength = 1500; |
| 19 static const int kTestPayloadType = 127; | 21 static const int kTestPayloadType = 127; |
| 20 static const uint32_t kTestSsrc = 1234; | 22 static const uint32_t kTestSsrc = 1234; |
| 21 static const uint32_t kTestTimestamp = 111111; | 23 static const uint32_t kTestTimestamp = 111111; |
| 22 static const uint16_t kTestSeqNum = 4321; | 24 static const uint16_t kTestSeqNum = 4321; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 packet_builder_.SetFrameIds(frame_id, reference_frame_id); | 193 packet_builder_.SetFrameIds(frame_id, reference_frame_id); |
| 192 packet_builder_.BuildHeader(packet_, kPacketLength); | 194 packet_builder_.BuildHeader(packet_, kPacketLength); |
| 193 cast_header_.frame_id = frame_id; | 195 cast_header_.frame_id = frame_id; |
| 194 cast_header_.reference_frame_id = reference_frame_id; | 196 cast_header_.reference_frame_id = reference_frame_id; |
| 195 ExpectParsesPacket(); | 197 ExpectParsesPacket(); |
| 196 } | 198 } |
| 197 } | 199 } |
| 198 | 200 |
| 199 } // namespace cast | 201 } // namespace cast |
| 200 } // namespace media | 202 } // namespace media |
| OLD | NEW |