Fix jitter buffer unittest.

TBR=mflodman@webrtc.org
BUG=1737

Review URL: https://webrtc-codereview.appspot.com/1430005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3967 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2013-05-07 12:35:58 +00:00
parent a5dee33639
commit d3a1959678

View File

@ -470,7 +470,7 @@ TEST_F(TestJitterBufferNack, NormalOperationWrap2) {
clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs);
for (int i = 0; i < 5; ++i) { for (int i = 0; i < 5; ++i) {
if (stream_generator_->NextSequenceNumber() != 65535) { if (stream_generator_->NextSequenceNumber() != 65535) {
EXPECT_EQ(kCompleteSession, InsertPacketAndPop(0)); EXPECT_EQ(kFirstPacket, InsertPacketAndPop(0));
EXPECT_FALSE(request_key_frame); EXPECT_FALSE(request_key_frame);
} else { } else {
stream_generator_->NextPacket(NULL); // Drop packet stream_generator_->NextPacket(NULL); // Drop packet
@ -479,7 +479,7 @@ TEST_F(TestJitterBufferNack, NormalOperationWrap2) {
clock_->TimeInMilliseconds()); clock_->TimeInMilliseconds());
clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs);
} }
EXPECT_EQ(kCompleteSession, InsertPacketAndPop(0)); EXPECT_EQ(kFirstPacket, InsertPacketAndPop(0));
EXPECT_FALSE(request_key_frame); EXPECT_FALSE(request_key_frame);
uint16_t nack_list_size = 0; uint16_t nack_list_size = 0;
bool extended = false; bool extended = false;