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 28 matching lines...) Expand all Loading... |
39 const int32_t audioVideoOffset) {} | 39 const int32_t audioVideoOffset) {} |
40 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) {} | 40 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) {} |
41 virtual void OnReceivedSLI(uint32_t ssrc, | 41 virtual void OnReceivedSLI(uint32_t ssrc, |
42 uint8_t pictureId) { | 42 uint8_t pictureId) { |
43 EXPECT_EQ(kSliPictureId & 0x3f, pictureId); | 43 EXPECT_EQ(kSliPictureId & 0x3f, pictureId); |
44 } | 44 } |
45 virtual void OnReceivedRPSI(uint32_t ssrc, | 45 virtual void OnReceivedRPSI(uint32_t ssrc, |
46 uint64_t pictureId) { | 46 uint64_t pictureId) { |
47 EXPECT_EQ(kTestPictureId, pictureId); | 47 EXPECT_EQ(kTestPictureId, pictureId); |
48 } | 48 } |
49 virtual void OnLocalSsrcChanged(uint32_t old_ssrc, uint32_t new_ssrc) {} | |
50 | 49 |
51 private: | 50 private: |
52 RtpRtcp* _rtpRtcpModule; | 51 RtpRtcp* _rtpRtcpModule; |
53 }; | 52 }; |
54 | 53 |
55 class TestRtpFeedback : public NullRtpFeedback { | 54 class TestRtpFeedback : public NullRtpFeedback { |
56 public: | 55 public: |
57 explicit TestRtpFeedback(RtpRtcp* rtp_rtcp) : rtp_rtcp_(rtp_rtcp) {} | 56 explicit TestRtpFeedback(RtpRtcp* rtp_rtcp) : rtp_rtcp_(rtp_rtcp) {} |
58 virtual ~TestRtpFeedback() {} | 57 virtual ~TestRtpFeedback() {} |
59 | 58 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); | 267 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); |
269 | 268 |
270 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); | 269 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); |
271 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); | 270 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); |
272 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); | 271 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); |
273 EXPECT_EQ(0u, report_blocks[0].fractionLost); | 272 EXPECT_EQ(0u, report_blocks[0].fractionLost); |
274 } | 273 } |
275 | 274 |
276 } // namespace | 275 } // namespace |
277 } // namespace webrtc | 276 } // namespace webrtc |
OLD | NEW |