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

Side by Side Diff: media/cast/rtcp/test_rtcp_packet_builder.h

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
« no previous file with comments | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/rtcp/test_rtcp_packet_builder.cc » ('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 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 // A very simple packet builder class for building RTCP packets. 5 // A very simple packet builder class for building RTCP packets.
6 // Used for testing only. 6 // Used for testing only.
7 #ifndef MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ 7 #ifndef MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_
8 #define MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ 8 #define MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_
9 9
10 #include "media/cast/rtcp/rtcp_defines.h" 10 #include "media/cast/rtcp/rtcp_defines.h"
11 #include "net/base/big_endian.h" 11 #include "net/base/big_endian.h"
12 12
13 namespace media { 13 namespace media {
14 namespace cast { 14 namespace cast {
15 15
16 // These values are arbitrary only for the purpose of testing.
17
16 // Sender report. 18 // Sender report.
17 static const int kNtpHigh = 0x01020304; 19 static const int kNtpHigh = 0x01020304;
18 static const int kNtpLow = 0x05060708; 20 static const int kNtpLow = 0x05060708;
19 static const int kRtpTimestamp = 0x10203; 21 static const int kRtpTimestamp = 0x10203;
20 static const int kSendPacketCount = 987; 22 static const int kSendPacketCount = 987;
21 static const int kSendOctetCount = 87654; 23 static const int kSendOctetCount = 87654;
22 24
23 // Report block. 25 // Report block.
24 static const int kLoss = 0x01000123; 26 static const int kLoss = 0x01000123;
25 static const int kExtendedMax = 0x15678; 27 static const int kExtendedMax = 0x15678;
26 static const int kJitter = 0x10203; 28 static const int kJitter = 0x10203;
27 static const int kLastSr = 0x34561234; 29 static const int kLastSr = 0x34561234;
28 static const int kDelayLastSr = 1000; 30 static const int kDelayLastSr = 1000;
29 31
30 // DLRR block. 32 // DLRR block.
31 static const int kLastRr = 0x34561234; 33 static const int kLastRr = 0x34561234;
32 static const int kDelayLastRr = 1000; 34 static const int kDelayLastRr = 1000;
33 35
34 // REMB. 36 // REMB.
35 static const int kRembBitrate = 524286; 37 static const int kRembBitrate = 52428;
36 38
37 // RPSI. 39 // RPSI.
38 static const int kPayloadtype = 126; 40 static const int kPayloadtype = 126;
39 static const uint64 kPictureId = 0x1234567890; 41 static const uint64 kPictureId = 0x1234567890;
40 42
41 // NACK. 43 // NACK.
42 static const int kMissingPacket = 34567; 44 static const int kMissingPacket = 34567;
43 45
44 // CAST. 46 // CAST.
45 static const int kAckFrameId = 17; 47 static const int kAckFrameId = 17;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Note: 0 is not a legal value, it is used for "uninitialized". 85 // Note: 0 is not a legal value, it is used for "uninitialized".
84 uint8 buffer_[kIpPacketSize]; 86 uint8 buffer_[kIpPacketSize];
85 char* ptr_of_length_; 87 char* ptr_of_length_;
86 net::BigEndianWriter big_endian_writer_; 88 net::BigEndianWriter big_endian_writer_;
87 }; 89 };
88 90
89 } // namespace cast 91 } // namespace cast
90 } // namespace media 92 } // namespace media
91 93
92 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ 94 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_
93
94
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/rtcp/test_rtcp_packet_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698