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

Side by Side Diff: webrtc/video/video_send_stream_tests.cc

Issue 2988143002: Remove NullReceiveStatistics (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include <algorithm> // max 10 #include <algorithm> // max
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 750
751 private: 751 private:
752 Action OnSendRtp(const uint8_t* packet, size_t length) override { 752 Action OnSendRtp(const uint8_t* packet, size_t length) override {
753 RTPHeader header; 753 RTPHeader header;
754 EXPECT_TRUE(parser_->Parse(packet, length, &header)); 754 EXPECT_TRUE(parser_->Parse(packet, length, &header));
755 755
756 // Nack second packet after receiving the third one. 756 // Nack second packet after receiving the third one.
757 if (++send_count_ == 3) { 757 if (++send_count_ == 3) {
758 uint16_t nack_sequence_number = header.sequenceNumber - 1; 758 uint16_t nack_sequence_number = header.sequenceNumber - 1;
759 nacked_sequence_number_ = nack_sequence_number; 759 nacked_sequence_number_ = nack_sequence_number;
760 NullReceiveStatistics null_stats; 760 RTCPSender rtcp_sender(false, Clock::GetRealTimeClock(), nullptr,
761 RTCPSender rtcp_sender(false, Clock::GetRealTimeClock(), &null_stats,
762 nullptr, nullptr, transport_adapter_.get()); 761 nullptr, nullptr, transport_adapter_.get());
763 762
764 rtcp_sender.SetRTCPStatus(RtcpMode::kReducedSize); 763 rtcp_sender.SetRTCPStatus(RtcpMode::kReducedSize);
765 rtcp_sender.SetRemoteSSRC(kVideoSendSsrcs[0]); 764 rtcp_sender.SetRemoteSSRC(kVideoSendSsrcs[0]);
766 765
767 RTCPSender::FeedbackState feedback_state; 766 RTCPSender::FeedbackState feedback_state;
768 767
769 EXPECT_EQ(0, 768 EXPECT_EQ(0,
770 rtcp_sender.SendRTCP( 769 rtcp_sender.SendRTCP(
771 feedback_state, kRtcpNack, 1, &nack_sequence_number)); 770 feedback_state, kRtcpNack, 1, &nack_sequence_number));
(...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after
3413 capturer_ = frame_generator_capturer; 3412 capturer_ = frame_generator_capturer;
3414 } 3413 }
3415 3414
3416 test::FrameGeneratorCapturer* capturer_ = nullptr; 3415 test::FrameGeneratorCapturer* capturer_ = nullptr;
3417 } test; 3416 } test;
3418 3417
3419 RunBaseTest(&test); 3418 RunBaseTest(&test);
3420 } 3419 }
3421 3420
3422 } // namespace webrtc 3421 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698