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

Unified Diff: webrtc/modules/video_coding/video_packet_buffer_unittest.cc

Issue 2914683002: Cast sequence number in RtpFrameObject. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/video_coding/frame_object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/video_packet_buffer_unittest.cc
diff --git a/webrtc/modules/video_coding/video_packet_buffer_unittest.cc b/webrtc/modules/video_coding/video_packet_buffer_unittest.cc
index 86d54ebafe84c2251a0fc9a18513e4a040327f22..b332d8ccb4cad9cc0c9e2eb197422c2e0d88d363 100644
--- a/webrtc/modules/video_coding/video_packet_buffer_unittest.cc
+++ b/webrtc/modules/video_coding/video_packet_buffer_unittest.cc
@@ -501,5 +501,24 @@ TEST_F(TestPacketBuffer, OneH264FrameFillBuffer) {
CheckFrame(0);
}
+TEST_F(TestPacketBuffer, OneH264FrameMaxSeqNum) {
+ VCMPacket packet;
+ packet.seqNum = 65534;
+ packet.codec = kVideoCodecH264;
+ packet.dataPtr = nullptr;
+ packet.sizeBytes = 0;
+ packet.is_first_packet_in_frame = true;
+ packet.markerBit = false;
+ packet_buffer_->InsertPacket(&packet);
+
+ packet.is_first_packet_in_frame = false;
+ packet.seqNum = 65535;
+ packet.markerBit = true;
+ packet_buffer_->InsertPacket(&packet);
+
+ EXPECT_EQ(1UL, frames_from_callback_.size());
+ CheckFrame(65534);
+}
+
} // namespace video_coding
} // namespace webrtc
« no previous file with comments | « webrtc/modules/video_coding/frame_object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698