PacketBuffer now correctly cast sequence numbers to uint16_t.
BUG=webrtc:5514 Review-Url: https://codereview.webrtc.org/2603223002 Cr-Commit-Position: refs/heads/master@{#15885}
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user