| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 RtpRtcp* _rtpRtcpModule; | 51 RtpRtcp* _rtpRtcpModule; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 class TestRtpFeedback : public NullRtpFeedback { | 54 class TestRtpFeedback : public NullRtpFeedback { |
| 55 public: | 55 public: |
| 56 explicit TestRtpFeedback(RtpRtcp* rtp_rtcp) : rtp_rtcp_(rtp_rtcp) {} | 56 explicit TestRtpFeedback(RtpRtcp* rtp_rtcp) : rtp_rtcp_(rtp_rtcp) {} |
| 57 virtual ~TestRtpFeedback() {} | 57 virtual ~TestRtpFeedback() {} |
| 58 | 58 |
| 59 void OnIncomingSSRCChanged(const uint32_t ssrc) override { | 59 void OnIncomingSSRCChanged(uint32_t ssrc) override { |
| 60 rtp_rtcp_->SetRemoteSSRC(ssrc); | 60 rtp_rtcp_->SetRemoteSSRC(ssrc); |
| 61 } | 61 } |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 RtpRtcp* rtp_rtcp_; | 64 RtpRtcp* rtp_rtcp_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 class RtpRtcpRtcpTest : public ::testing::Test { | 67 class RtpRtcpRtcpTest : public ::testing::Test { |
| 68 protected: | 68 protected: |
| 69 RtpRtcpRtcpTest() | 69 RtpRtcpRtcpTest() |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); | 255 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); |
| 256 | 256 |
| 257 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); | 257 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); |
| 258 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); | 258 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); |
| 259 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); | 259 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); |
| 260 EXPECT_EQ(0u, report_blocks[0].fractionLost); | 260 EXPECT_EQ(0u, report_blocks[0].fractionLost); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace | 263 } // namespace |
| 264 } // namespace webrtc | 264 } // namespace webrtc |
| OLD | NEW |