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 1e2ef3ec2aca42965bd53b4f335c091b62f396ca..e2ac8be6b3cdd0d4c9e95bf218a40898be134363 100644 |
--- a/webrtc/modules/video_coding/video_packet_buffer_unittest.cc |
+++ b/webrtc/modules/video_coding/video_packet_buffer_unittest.cc |
@@ -102,11 +102,19 @@ TEST_F(TestPacketBuffer, InsertDuplicatePacket) { |
EXPECT_TRUE(Insert(seq_num, kKeyFrame, kFirst, kLast)); |
} |
-TEST_F(TestPacketBuffer, SeqNumWrap) { |
+TEST_F(TestPacketBuffer, SeqNumWrapOneFrame) { |
+ EXPECT_TRUE(Insert(0xFFFF, kKeyFrame, kFirst, kNotLast)); |
+ EXPECT_TRUE(Insert(0x0, kKeyFrame, kNotFirst, kLast)); |
+ |
+ CheckFrame(0xFFFF); |
+} |
+ |
+TEST_F(TestPacketBuffer, SeqNumWrapTwoFrames) { |
EXPECT_TRUE(Insert(0xFFFF, kKeyFrame, kFirst, kLast)); |
EXPECT_TRUE(Insert(0x0, kKeyFrame, kFirst, kLast)); |
CheckFrame(0xFFFF); |
+ CheckFrame(0x0); |
} |
TEST_F(TestPacketBuffer, InsertOldPackets) { |