Index: webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc |
index 957a08ffbf9fff248aa7e65fc0e36f423e82eba7..85bbb404a4401abcaf91aff92b0979ff5961a42d 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc |
@@ -52,13 +52,13 @@ |
TEST(RtcpPacketReportBlockTest, ParseMatchCreate) { |
ReportBlock rb; |
- rb.SetMediaSsrc(kRemoteSsrc); |
- rb.SetFractionLost(kFractionLost); |
- rb.SetCumulativeLost(kCumulativeLost); |
- rb.SetExtHighestSeqNum(kExtHighestSeqNum); |
- rb.SetJitter(kJitter); |
- rb.SetLastSr(kLastSr); |
- rb.SetDelayLastSr(kDelayLastSr); |
+ rb.To(kRemoteSsrc); |
+ rb.WithFractionLost(kFractionLost); |
+ rb.WithCumulativeLost(kCumulativeLost); |
+ rb.WithExtHighestSeqNum(kExtHighestSeqNum); |
+ rb.WithJitter(kJitter); |
+ rb.WithLastSr(kLastSr); |
+ rb.WithDelayLastSr(kDelayLastSr); |
uint8_t buffer[kBufferLength]; |
rb.Create(buffer); |
@@ -78,8 +78,8 @@ |
TEST(RtcpPacketReportBlockTest, ValidateCumulativeLost) { |
const uint32_t kMaxCumulativeLost = 0xffffff; |
ReportBlock rb; |
- EXPECT_FALSE(rb.SetCumulativeLost(kMaxCumulativeLost + 1)); |
- EXPECT_TRUE(rb.SetCumulativeLost(kMaxCumulativeLost)); |
+ EXPECT_FALSE(rb.WithCumulativeLost(kMaxCumulativeLost + 1)); |
+ EXPECT_TRUE(rb.WithCumulativeLost(kMaxCumulativeLost)); |
} |
} // namespace |