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

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: 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
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 ec3875553bf5d547dc6052b590f92711ffb51670..c3d8bdb10efb39da6d6f338a1771883b002e0fa0 100644
--- a/media/cast/net/rtcp/rtcp_utility_unittest.cc
+++ b/media/cast/net/rtcp/rtcp_utility_unittest.cc
@@ -40,7 +40,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);
}
@@ -329,7 +330,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;
@@ -374,7 +375,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();

Powered by Google App Engine
This is Rietveld 408576698