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

Unified Diff: media/cast/net/rtcp/rtcp_utility_unittest.cc

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 5 years 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/net/rtcp/rtcp_utility.cc ('k') | media/cast/net/rtp/frame_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtcp/rtcp_utility_unittest.cc
diff --git a/media/cast/net/rtcp/rtcp_utility_unittest.cc b/media/cast/net/rtcp/rtcp_utility_unittest.cc
index 66abc9a0f500b4a77fa9bc92d796b935b1f11eec..0f9e4c4e74a7f38652c080cb0efdcd4a7c31e832 100644
--- a/media/cast/net/rtcp/rtcp_utility_unittest.cc
+++ b/media/cast/net/rtcp/rtcp_utility_unittest.cc
@@ -43,7 +43,8 @@ class RtcpParserTest : public ::testing::Test {
EXPECT_TRUE(parser.has_sender_report());
EXPECT_EQ(kNtpHigh, parser.sender_report().ntp_seconds);
EXPECT_EQ(kNtpLow, parser.sender_report().ntp_fraction);
- EXPECT_EQ(kRtpTimestamp, parser.sender_report().rtp_timestamp);
+ EXPECT_EQ(kRtpTimestamp,
+ parser.sender_report().rtp_timestamp.lower_32_bits());
EXPECT_EQ(kSendPacketCount, parser.sender_report().send_packet_count);
EXPECT_EQ(kSendOctetCount, parser.sender_report().send_octet_count);
}
@@ -332,7 +333,7 @@ TEST_F(RtcpParserTest, InjectReceiverReportWithReceiverLogVerificationBase) {
testing_clock.Advance(base::TimeDelta::FromMilliseconds(kTimeBaseMs));
RtcpReceiverLogMessage receiver_log;
- RtcpReceiverFrameLogMessage frame_log(kRtpTimestamp);
+ RtcpReceiverFrameLogMessage frame_log(RtpTimeTicks().Expand(kRtpTimestamp));
RtcpReceiverEventLogMessage event_log;
event_log.type = FRAME_ACK_SENT;
@@ -377,7 +378,7 @@ TEST_F(RtcpParserTest, InjectReceiverReportWithReceiverLogVerificationMulti) {
RtcpReceiverLogMessage receiver_log;
for (int j = 0; j < 100; ++j) {
- RtcpReceiverFrameLogMessage frame_log(kRtpTimestamp);
+ RtcpReceiverFrameLogMessage frame_log(RtpTimeTicks().Expand(kRtpTimestamp));
RtcpReceiverEventLogMessage event_log;
event_log.type = FRAME_ACK_SENT;
event_log.event_timestamp = testing_clock.NowTicks();
« no previous file with comments | « media/cast/net/rtcp/rtcp_utility.cc ('k') | media/cast/net/rtp/frame_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698