Add thread/sequence checks to ModuleRtpRtcpImpl.
This ended up with needing to fork the current implementation in order to not break downstream projects that were inheriting from it. While those get updated, we'll move on with the forked class. Bug: webrtc:11581,b/8278269 Change-Id: I05b596cbda71aa5b72894c31a7119d17d4761883 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175500 Reviewed-by: Per Kjellander <perkj@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31334}
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
#include "modules/rtp_rtcp/source/rtcp_packet/bye.h"
|
||||
#include "modules/rtp_rtcp/source/rtcp_packet/common_header.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_packet_received.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_rtcp_impl.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_rtcp_impl2.h"
|
||||
#include "modules/rtp_rtcp/source/time_util.h"
|
||||
#include "rtc_base/rate_limiter.h"
|
||||
#include "test/gmock.h"
|
||||
@ -77,7 +77,7 @@ class RtcpSenderTest : public ::testing::Test {
|
||||
receive_statistics_(ReceiveStatistics::Create(&clock_)),
|
||||
retransmission_rate_limiter_(&clock_, 1000) {
|
||||
RtpRtcp::Configuration configuration = GetDefaultConfig();
|
||||
rtp_rtcp_impl_.reset(new ModuleRtpRtcpImpl(configuration));
|
||||
rtp_rtcp_impl_.reset(new ModuleRtpRtcpImpl2(configuration));
|
||||
rtcp_sender_.reset(new RTCPSender(configuration));
|
||||
rtcp_sender_->SetRemoteSSRC(kRemoteSsrc);
|
||||
rtcp_sender_->SetTimestampOffset(kStartRtpTimestamp);
|
||||
@ -115,7 +115,7 @@ class RtcpSenderTest : public ::testing::Test {
|
||||
SimulatedClock clock_;
|
||||
TestTransport test_transport_;
|
||||
std::unique_ptr<ReceiveStatistics> receive_statistics_;
|
||||
std::unique_ptr<ModuleRtpRtcpImpl> rtp_rtcp_impl_;
|
||||
std::unique_ptr<ModuleRtpRtcpImpl2> rtp_rtcp_impl_;
|
||||
std::unique_ptr<RTCPSender> rtcp_sender_;
|
||||
RateLimiter retransmission_rate_limiter_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user