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

Side by Side Diff: media/cast/net/rtcp/test_rtcp_packet_builder.cc

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes Created 6 years, 5 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/rtcp/test_rtcp_packet_builder.h" 5 #include "media/cast/net/rtcp/test_rtcp_packet_builder.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/cast/rtcp/rtcp_utility.h" 8 #include "media/cast/net/rtcp/rtcp_utility.h"
9 9
10 namespace media { 10 namespace media {
11 namespace cast { 11 namespace cast {
12 12
13 TestRtcpPacketBuilder::TestRtcpPacketBuilder() 13 TestRtcpPacketBuilder::TestRtcpPacketBuilder()
14 : ptr_of_length_(NULL), 14 : ptr_of_length_(NULL),
15 big_endian_writer_(reinterpret_cast<char*>(buffer_), kMaxIpPacketSize) {} 15 big_endian_writer_(reinterpret_cast<char*>(buffer_), kMaxIpPacketSize) {}
16 16
17 void TestRtcpPacketBuilder::AddSr(uint32 sender_ssrc, 17 void TestRtcpPacketBuilder::AddSr(uint32 sender_ssrc,
18 int number_of_report_blocks) { 18 int number_of_report_blocks) {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 big_endian_writer_.WriteU8(0x80 | (format_or_count & 0x1F)); 260 big_endian_writer_.WriteU8(0x80 | (format_or_count & 0x1F));
261 big_endian_writer_.WriteU8(payload); 261 big_endian_writer_.WriteU8(payload);
262 ptr_of_length_ = big_endian_writer_.ptr(); 262 ptr_of_length_ = big_endian_writer_.ptr();
263 263
264 // Initialize length to "clearly illegal". 264 // Initialize length to "clearly illegal".
265 big_endian_writer_.WriteU16(0xDEAD); 265 big_endian_writer_.WriteU16(0xDEAD);
266 } 266 }
267 267
268 } // namespace cast 268 } // namespace cast
269 } // namespace media 269 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/test_rtcp_packet_builder.h ('k') | media/cast/net/rtp/cast_message_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698