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

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

Issue 2902743002: 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 e418d124666d147c1e8ba3c0c666ae5a25709ce0..c5d1fce81d407b9aca286f0a02ee9e77b6eb7ecd 100644
--- a/webrtc/modules/video_coding/video_packet_buffer_unittest.cc
+++ b/webrtc/modules/video_coding/video_packet_buffer_unittest.cc
@@ -502,6 +502,25 @@ 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);
+}
+
TEST_F(TestPacketBuffer, PacketTimestamps) {
rtc::Optional<int64_t> packet_ms;
rtc::Optional<int64_t> packet_keyframe_ms;
« 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