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

Unified Diff: media/cast/rtcp/test_rtcp_packet_builder.h

Issue 83903002: Cast: Add capabity to parse receiver and sender log messages over RTCP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge TOT Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/rtcp/rtcp_utility.cc ('k') | media/cast/rtcp/test_rtcp_packet_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtcp/test_rtcp_packet_builder.h
diff --git a/media/cast/rtcp/test_rtcp_packet_builder.h b/media/cast/rtcp/test_rtcp_packet_builder.h
index 4bdcf58e70814ca741c1bdefb4e602b690377c8b..9b63a37fa4aed9018f24bb5eb7000f722dc88622 100644
--- a/media/cast/rtcp/test_rtcp_packet_builder.h
+++ b/media/cast/rtcp/test_rtcp_packet_builder.h
@@ -19,7 +19,7 @@ namespace {
// Sender report.
static const int kNtpHigh = 0x01020304;
static const int kNtpLow = 0x05060708;
-static const int kRtpTimestamp = 0x10203;
+static const int kRtpTimestamp = 0x10203040;
static const int kSendPacketCount = 987;
static const int kSendOctetCount = 87654;
@@ -77,6 +77,13 @@ class TestRtcpPacketBuilder {
void AddRpsi(uint32 sender_ssrc, uint32 media_ssrc);
void AddRemb(uint32 sender_ssrc, uint32 media_ssrc);
void AddCast(uint32 sender_ssrc, uint32 media_ssrc);
+ void AddSenderLog(uint32 sender_ssrc);
+ void AddSenderFrameLog(uint8 event_id, uint32 rtp_timestamp);
+ void AddReceiverLog(uint32 sender_ssrc);
+ void AddReceiverFrameLog(uint32 rtp_timestamp, int num_events,
+ uint32 event_timesamp_base);
+ void AddReceiverEventLog(uint16 event_data, uint8 event_id,
+ uint16 event_timesamp_delta);
const uint8* Packet();
int Length() { return kIpPacketSize - big_endian_writer_.remaining(); }
« no previous file with comments | « media/cast/rtcp/rtcp_utility.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