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

Side by Side Diff: media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.cc

Issue 25544003: Fix code style and gyp files in cast to build cast_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed gyp files Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
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 #include "media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h" 5 #include "media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/big_endian.h" 8 #include "net/base/big_endian.h"
9 9
10 namespace media { 10 namespace media {
11 namespace cast { 11 namespace cast {
12 12
13 const int kCastRtpHeaderLength = 7; 13 const uint32 kCastRtpHeaderLength = 7;
14 const int kGenericRtpHeaderLength = 12; 14 const uint32 kGenericRtpHeaderLength = 12;
15 15
16 RtpPacketBuilder::RtpPacketBuilder() 16 RtpPacketBuilder::RtpPacketBuilder()
17 : is_key_(false), 17 : is_key_(false),
18 frame_id_(0), 18 frame_id_(0),
19 packet_id_(0), 19 packet_id_(0),
20 max_packet_id_(0), 20 max_packet_id_(0),
21 reference_frame_id_(0), 21 reference_frame_id_(0),
22 is_reference_set_(false), 22 is_reference_set_(false),
23 timestamp_(0), 23 timestamp_(0),
24 sequence_number_(0), 24 sequence_number_(0),
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 net::BigEndianWriter big_endian_writer(data, 96); 95 net::BigEndianWriter big_endian_writer(data, 96);
96 big_endian_writer.WriteU8(0x80); 96 big_endian_writer.WriteU8(0x80);
97 big_endian_writer.WriteU8(payload_type_ | (marker_ ? kRtpMarkerBitMask : 0)); 97 big_endian_writer.WriteU8(payload_type_ | (marker_ ? kRtpMarkerBitMask : 0));
98 big_endian_writer.WriteU16(sequence_number_); 98 big_endian_writer.WriteU16(sequence_number_);
99 big_endian_writer.WriteU32(timestamp_); 99 big_endian_writer.WriteU32(timestamp_);
100 big_endian_writer.WriteU32(ssrc_); 100 big_endian_writer.WriteU32(ssrc_);
101 } 101 }
102 102
103 } // namespace cast 103 } // namespace cast
104 } // namespace media 104 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc ('k') | media/cast/rtp_receiver/rtp_receiver.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698