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

Unified Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc

Issue 3012253002: Reland of Delete Rtx-related methods from RTPPayloadRegistry. (Closed)
Patch Set: Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
diff --git a/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc b/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
index b39c8d72dae16fee1e8477083bfaaa25a401bced..28be2225b280c64ee9cf1a258b712f830b69e449 100644
--- a/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
+++ b/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
@@ -162,23 +162,4 @@
EXPECT_EQ(kRtxRetransmitted, module_->RtxSendStatus());
}
-TEST_F(RtpRtcpAPITest, RtxReceiver) {
- const uint32_t kRtxSsrc = 1;
- const int kRtxPayloadType = 119;
- const int kPayloadType = 100;
- EXPECT_FALSE(rtp_payload_registry_->RtxEnabled());
- rtp_payload_registry_->SetRtxSsrc(kRtxSsrc);
- rtp_payload_registry_->SetRtxPayloadType(kRtxPayloadType, kPayloadType);
- EXPECT_TRUE(rtp_payload_registry_->RtxEnabled());
- RTPHeader rtx_header;
- rtx_header.ssrc = kRtxSsrc;
- rtx_header.payloadType = kRtxPayloadType;
- EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header));
- rtx_header.ssrc = 0;
- EXPECT_FALSE(rtp_payload_registry_->IsRtx(rtx_header));
- rtx_header.ssrc = kRtxSsrc;
- rtx_header.payloadType = 0;
- EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header));
-}
-
} // namespace webrtc
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_payload_registry_unittest.cc ('k') | webrtc/video/rtp_video_stream_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698