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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc

Issue 2717983003: Move fake_audio_device to its own target. (Closed)
Patch Set: Fix more rtp.. Created 3 years, 9 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
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 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return 0; 51 return 0;
52 } 52 }
53 std::list<uint16_t> sequence_numbers_; 53 std::list<uint16_t> sequence_numbers_;
54 }; 54 };
55 55
56 class TestRtpFeedback : public NullRtpFeedback { 56 class TestRtpFeedback : public NullRtpFeedback {
57 public: 57 public:
58 explicit TestRtpFeedback(RtpRtcp* rtp_rtcp) : rtp_rtcp_(rtp_rtcp) {} 58 explicit TestRtpFeedback(RtpRtcp* rtp_rtcp) : rtp_rtcp_(rtp_rtcp) {}
59 virtual ~TestRtpFeedback() {} 59 virtual ~TestRtpFeedback() {}
60 60
61 void OnIncomingSSRCChanged(const uint32_t ssrc) override { 61 void OnIncomingSSRCChanged(uint32_t ssrc) override {
62 rtp_rtcp_->SetRemoteSSRC(ssrc); 62 rtp_rtcp_->SetRemoteSSRC(ssrc);
63 } 63 }
64 64
65 private: 65 private:
66 RtpRtcp* rtp_rtcp_; 66 RtpRtcp* rtp_rtcp_;
67 }; 67 };
68 68
69 class RtxLoopBackTransport : public webrtc::Transport { 69 class RtxLoopBackTransport : public webrtc::Transport {
70 public: 70 public:
71 explicit RtxLoopBackTransport(uint32_t rtx_ssrc) 71 explicit RtxLoopBackTransport(uint32_t rtx_ssrc)
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 RunRtxTest(kRtxRetransmitted, 10); 334 RunRtxTest(kRtxRetransmitted, 10);
335 EXPECT_EQ(kTestSequenceNumber, *(receiver_.sequence_numbers_.begin())); 335 EXPECT_EQ(kTestSequenceNumber, *(receiver_.sequence_numbers_.begin()));
336 EXPECT_EQ(kTestSequenceNumber + kTestNumberOfPackets - 1, 336 EXPECT_EQ(kTestSequenceNumber + kTestNumberOfPackets - 1,
337 *(receiver_.sequence_numbers_.rbegin())); 337 *(receiver_.sequence_numbers_.rbegin()));
338 EXPECT_EQ(kTestNumberOfPackets, receiver_.sequence_numbers_.size()); 338 EXPECT_EQ(kTestNumberOfPackets, receiver_.sequence_numbers_.size());
339 EXPECT_EQ(kTestNumberOfRtxPackets, transport_.count_rtx_ssrc_); 339 EXPECT_EQ(kTestNumberOfRtxPackets, transport_.count_rtx_ssrc_);
340 EXPECT_TRUE(ExpectedPacketsReceived()); 340 EXPECT_TRUE(ExpectedPacketsReceived());
341 } 341 }
342 342
343 } // namespace webrtc 343 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc » ('j') | webrtc/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698