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 |
11 #include <cstring> | 11 #include <cstring> |
12 #include <limits> | 12 #include <limits> |
13 #include <map> | 13 #include <map> |
14 #include <set> | 14 #include <set> |
15 #include <utility> | 15 #include <utility> |
16 | 16 |
17 #include "webrtc/test/gtest.h" | |
18 #include "webrtc/base/random.h" | 17 #include "webrtc/base/random.h" |
19 #include "webrtc/base/refcount.h" | 18 #include "webrtc/base/refcount.h" |
20 #include "webrtc/modules/video_coding/frame_object.h" | 19 #include "webrtc/modules/video_coding/frame_object.h" |
21 #include "webrtc/modules/video_coding/packet_buffer.h" | 20 #include "webrtc/modules/video_coding/packet_buffer.h" |
22 #include "webrtc/system_wrappers/include/clock.h" | 21 #include "webrtc/system_wrappers/include/clock.h" |
| 22 #include "webrtc/test/gtest.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace video_coding { | 25 namespace video_coding { |
26 | 26 |
27 class FakePacketBuffer : public PacketBuffer { | 27 class FakePacketBuffer : public PacketBuffer { |
28 public: | 28 public: |
29 FakePacketBuffer() : PacketBuffer(nullptr, 0, 0, nullptr) {} | 29 FakePacketBuffer() : PacketBuffer(nullptr, 0, 0, nullptr) {} |
30 | 30 |
31 VCMPacket* GetPacket(uint16_t seq_num) override { | 31 VCMPacket* GetPacket(uint16_t seq_num) override { |
32 auto packet_it = packets_.find(seq_num); | 32 auto packet_it = packets_.find(seq_num); |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1204 CheckReferencesVp9(pid + 5, 1, pid + 4); | 1204 CheckReferencesVp9(pid + 5, 1, pid + 4); |
1205 CheckReferencesVp9(pid + 6, 0, pid + 4); | 1205 CheckReferencesVp9(pid + 6, 0, pid + 4); |
1206 CheckReferencesVp9(pid + 6, 1, pid + 5); | 1206 CheckReferencesVp9(pid + 6, 1, pid + 5); |
1207 CheckReferencesVp9(pid + 7, 1, pid + 6); | 1207 CheckReferencesVp9(pid + 7, 1, pid + 6); |
1208 CheckReferencesVp9(pid + 8, 0, pid + 6); | 1208 CheckReferencesVp9(pid + 8, 0, pid + 6); |
1209 CheckReferencesVp9(pid + 8, 1, pid + 7); | 1209 CheckReferencesVp9(pid + 8, 1, pid + 7); |
1210 } | 1210 } |
1211 | 1211 |
1212 } // namespace video_coding | 1212 } // namespace video_coding |
1213 } // namespace webrtc | 1213 } // namespace webrtc |
OLD | NEW |