| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 packets_.erase(frame->first_seq_num()); | 47 packets_.erase(frame->first_seq_num()); |
| 48 } | 48 } |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 std::map<uint16_t, VCMPacket> packets_; | 51 std::map<uint16_t, VCMPacket> packets_; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 class TestRtpFrameReferenceFinder : public ::testing::Test, | 54 class TestRtpFrameReferenceFinder : public ::testing::Test, |
| 55 public OnCompleteFrameCallback { | 55 public OnCompleteFrameCallback { |
| 56 protected: | 56 protected: |
| 57 static constexpr uint64_t kUnwrappedSequenceStart = 10000000000000000000UL; | 57 static constexpr uint64_t kUnwrappedSequenceStart = 1000000000000000000UL; |
| 58 | 58 |
| 59 TestRtpFrameReferenceFinder() | 59 TestRtpFrameReferenceFinder() |
| 60 : rand_(0x8739211), | 60 : rand_(0x8739211), |
| 61 ref_packet_buffer_(new FakePacketBuffer()), | 61 ref_packet_buffer_(new FakePacketBuffer()), |
| 62 reference_finder_(new RtpFrameReferenceFinder(this)), | 62 reference_finder_(new RtpFrameReferenceFinder(this)), |
| 63 frames_from_callback_(FrameComp()) {} | 63 frames_from_callback_(FrameComp()) {} |
| 64 | 64 |
| 65 uint16_t Rand() { return rand_.Rand<uint16_t>(); } | 65 uint16_t Rand() { return rand_.Rand<uint16_t>(); } |
| 66 | 66 |
| 67 void OnCompleteFrame(std::unique_ptr<FrameObject> frame) override { | 67 void OnCompleteFrame(std::unique_ptr<FrameObject> frame) override { |
| (...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 CheckReferencesVp9(5, 1, 4); | 1308 CheckReferencesVp9(5, 1, 4); |
| 1309 CheckReferencesVp9(6, 0, 4); | 1309 CheckReferencesVp9(6, 0, 4); |
| 1310 CheckReferencesVp9(6, 1, 5); | 1310 CheckReferencesVp9(6, 1, 5); |
| 1311 CheckReferencesVp9(7, 1, 6); | 1311 CheckReferencesVp9(7, 1, 6); |
| 1312 CheckReferencesVp9(8, 0, 6); | 1312 CheckReferencesVp9(8, 0, 6); |
| 1313 CheckReferencesVp9(8, 1, 7); | 1313 CheckReferencesVp9(8, 1, 7); |
| 1314 } | 1314 } |
| 1315 | 1315 |
| 1316 } // namespace video_coding | 1316 } // namespace video_coding |
| 1317 } // namespace webrtc | 1317 } // namespace webrtc |
| OLD | NEW |