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

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

Issue 25546003: Revert 226264 "Be able to build cast_unittest and related target..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 // 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
18 // Sender report. 16 // Sender report.
19 static const int kNtpHigh = 0x01020304; 17 static const int kNtpHigh = 0x01020304;
20 static const int kNtpLow = 0x05060708; 18 static const int kNtpLow = 0x05060708;
21 static const int kRtpTimestamp = 0x10203; 19 static const int kRtpTimestamp = 0x10203;
22 static const int kSendPacketCount = 987; 20 static const int kSendPacketCount = 987;
23 static const int kSendOctetCount = 87654; 21 static const int kSendOctetCount = 87654;
24 22
25 // Report block. 23 // Report block.
26 static const int kLoss = 0x01000123; 24 static const int kLoss = 0x01000123;
27 static const int kExtendedMax = 0x15678; 25 static const int kExtendedMax = 0x15678;
28 static const int kJitter = 0x10203; 26 static const int kJitter = 0x10203;
29 static const int kLastSr = 0x34561234; 27 static const int kLastSr = 0x34561234;
30 static const int kDelayLastSr = 1000; 28 static const int kDelayLastSr = 1000;
31 29
32 // DLRR block. 30 // DLRR block.
33 static const int kLastRr = 0x34561234; 31 static const int kLastRr = 0x34561234;
34 static const int kDelayLastRr = 1000; 32 static const int kDelayLastRr = 1000;
35 33
36 // REMB. 34 // REMB.
37 static const int kRembBitrate = 52428; 35 static const int kRembBitrate = 524286;
38 36
39 // RPSI. 37 // RPSI.
40 static const int kPayloadtype = 126; 38 static const int kPayloadtype = 126;
41 static const uint64 kPictureId = 0x1234567890; 39 static const uint64 kPictureId = 0x1234567890;
42 40
43 // NACK. 41 // NACK.
44 static const int kMissingPacket = 34567; 42 static const int kMissingPacket = 34567;
45 43
46 // CAST. 44 // CAST.
47 static const int kAckFrameId = 17; 45 static const int kAckFrameId = 17;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Note: 0 is not a legal value, it is used for "uninitialized". 83 // Note: 0 is not a legal value, it is used for "uninitialized".
86 uint8 buffer_[kIpPacketSize]; 84 uint8 buffer_[kIpPacketSize];
87 char* ptr_of_length_; 85 char* ptr_of_length_;
88 net::BigEndianWriter big_endian_writer_; 86 net::BigEndianWriter big_endian_writer_;
89 }; 87 };
90 88
91 } // namespace cast 89 } // namespace cast
92 } // namespace media 90 } // namespace media
93 91
94 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ 92 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_
93
94
OLDNEW
« no previous file with comments | « trunk/src/media/cast/rtcp/rtcp_unittest.cc ('k') | trunk/src/media/cast/rtcp/test_rtcp_packet_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698