| 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/rand_util.h" | 6 #include "base/rand_util.h" |
| 7 #include "media/cast/net/rtp/rtp_defines.h" |
| 7 #include "media/cast/net/rtp/rtp_packet_builder.h" | 8 #include "media/cast/net/rtp/rtp_packet_builder.h" |
| 8 #include "media/cast/net/rtp/rtp_parser.h" | 9 #include "media/cast/net/rtp/rtp_parser.h" |
| 9 #include "media/cast/net/rtp/rtp_receiver_defines.h" | |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 namespace cast { | 13 namespace cast { |
| 14 | 14 |
| 15 static const size_t kPacketLength = 1500; | 15 static const size_t kPacketLength = 1500; |
| 16 static const int kTestPayloadType = 127; | 16 static const int kTestPayloadType = 127; |
| 17 static const uint32 kTestSsrc = 1234; | 17 static const uint32 kTestSsrc = 1234; |
| 18 static const uint32 kTestTimestamp = 111111; | 18 static const uint32 kTestTimestamp = 111111; |
| 19 static const uint16 kTestSeqNum = 4321; | 19 static const uint16 kTestSeqNum = 4321; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 packet_builder_.SetFrameIds(frame_id, reference_frame_id); | 188 packet_builder_.SetFrameIds(frame_id, reference_frame_id); |
| 189 packet_builder_.BuildHeader(packet_, kPacketLength); | 189 packet_builder_.BuildHeader(packet_, kPacketLength); |
| 190 cast_header_.frame_id = frame_id; | 190 cast_header_.frame_id = frame_id; |
| 191 cast_header_.reference_frame_id = reference_frame_id; | 191 cast_header_.reference_frame_id = reference_frame_id; |
| 192 ExpectParsesPacket(); | 192 ExpectParsesPacket(); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace cast | 196 } // namespace cast |
| 197 } // namespace media | 197 } // namespace media |
| OLD | NEW |