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

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

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 // 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 <stdint.h> 10 #include <stdint.h>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void AddXrUnknownBlock(); 71 void AddXrUnknownBlock();
72 void AddUnknownBlock(); 72 void AddUnknownBlock();
73 73
74 void AddNack(uint32_t sender_ssrc, uint32_t media_ssrc); 74 void AddNack(uint32_t sender_ssrc, uint32_t media_ssrc);
75 void AddSendReportRequest(uint32_t sender_ssrc, uint32_t media_ssrc); 75 void AddSendReportRequest(uint32_t sender_ssrc, uint32_t media_ssrc);
76 76
77 void AddCast(uint32_t sender_ssrc, 77 void AddCast(uint32_t sender_ssrc,
78 uint32_t media_ssrc, 78 uint32_t media_ssrc,
79 base::TimeDelta target_delay); 79 base::TimeDelta target_delay);
80 void AddCst2(const std::vector<uint32_t>& later_received_frames); 80 void AddCst2(const std::vector<uint32_t>& later_received_frames);
81 void AddPli(uint32_t sender_ssrc, uint32_t media_ssrc);
81 82
82 void AddReceiverLog(uint32_t sender_ssrc); 83 void AddReceiverLog(uint32_t sender_ssrc);
83 void AddReceiverFrameLog(uint32_t rtp_timestamp, 84 void AddReceiverFrameLog(uint32_t rtp_timestamp,
84 int num_events, 85 int num_events,
85 uint32_t event_timesamp_base); 86 uint32_t event_timesamp_base);
86 void AddReceiverEventLog(uint16_t event_data, 87 void AddReceiverEventLog(uint16_t event_data,
87 CastLoggingEvent event, 88 CastLoggingEvent event,
88 uint16_t event_timesamp_delta); 89 uint16_t event_timesamp_delta);
89 90
90 scoped_ptr<Packet> GetPacket(); 91 scoped_ptr<Packet> GetPacket();
(...skipping 12 matching lines...) Expand all
103 base::BigEndianWriter big_endian_writer_; 104 base::BigEndianWriter big_endian_writer_;
104 base::BigEndianReader big_endian_reader_; 105 base::BigEndianReader big_endian_reader_;
105 106
106 DISALLOW_COPY_AND_ASSIGN(TestRtcpPacketBuilder); 107 DISALLOW_COPY_AND_ASSIGN(TestRtcpPacketBuilder);
107 }; 108 };
108 109
109 } // namespace cast 110 } // namespace cast
110 } // namespace media 111 } // namespace media
111 112
112 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_ 113 #endif // MEDIA_CAST_RTCP_TEST_RTCP_PACKET_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698