Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: media/cast/net/rtp/rtp_parser_unittest.cc

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/net/rtp/rtp_packetizer_unittest.cc ('k') | media/cast/net/rtp/rtp_sender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/cast/net/rtp/rtp_packetizer_unittest.cc ('k') | media/cast/net/rtp/rtp_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698