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

Unified Diff: webrtc/video/rtp_video_stream_receiver_unittest.cc

Issue 3006063002: Reland of Use RtxReceiveStream. (Closed)
Patch Set: Address comments. 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
« no previous file with comments | « webrtc/video/rtp_video_stream_receiver.cc ('k') | webrtc/video/video_receive_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/rtp_video_stream_receiver_unittest.cc
diff --git a/webrtc/video/rtp_video_stream_receiver_unittest.cc b/webrtc/video/rtp_video_stream_receiver_unittest.cc
index d309397dd471d32fcc40adb7fbc391905feb3652..4f2dca73381c21a9a2aed0fa3bf14ad1c426369b 100644
--- a/webrtc/video/rtp_video_stream_receiver_unittest.cc
+++ b/webrtc/video/rtp_video_stream_receiver_unittest.cc
@@ -126,11 +126,14 @@ class RtpVideoStreamReceiverTest : public testing::Test {
process_thread_(ProcessThread::Create("TestThread")) {}
void SetUp() {
- rtp_video_stream_receiver_.reset(new RtpVideoStreamReceiver(
+ rtp_receive_statistics_ =
+ rtc::WrapUnique(ReceiveStatistics::Create(Clock::GetRealTimeClock()));
+ rtp_video_stream_receiver_ = rtc::MakeUnique<RtpVideoStreamReceiver>(
&mock_transport_, nullptr, &packet_router_, &config_,
- nullptr, process_thread_.get(), &mock_nack_sender_,
+ rtp_receive_statistics_.get(), nullptr, process_thread_.get(),
+ &mock_nack_sender_,
&mock_key_frame_request_sender_, &mock_on_complete_frame_callback_,
- &timing_));
+ &timing_);
}
WebRtcRTPHeader GetDefaultPacket() {
@@ -196,6 +199,7 @@ class RtpVideoStreamReceiverTest : public testing::Test {
PacketRouter packet_router_;
VCMTiming timing_;
std::unique_ptr<ProcessThread> process_thread_;
+ std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_;
std::unique_ptr<RtpVideoStreamReceiver> rtp_video_stream_receiver_;
};
« no previous file with comments | « webrtc/video/rtp_video_stream_receiver.cc ('k') | webrtc/video/video_receive_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698