Rewrite the jitter buffer statistics test and put make it robust under valgrind.
BUG=1158 Review URL: https://webrtc-codereview.appspot.com/1116008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3579 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -347,7 +347,7 @@ CodecDataBaseTest::Perform(CmdArgs& args)
|
||||
waitEvent->Wait(33); // was 100
|
||||
|
||||
int ret =_vcm->Decode();
|
||||
TEST(ret == 0);
|
||||
TEST(ret >= 0);
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("Error #%d in frame number %d \n",ret, frameCnt);
|
||||
|
||||
@ -719,24 +719,6 @@ int JitterBufferTest(CmdArgs& args)
|
||||
packet.insertStartCode = false;
|
||||
//printf("DONE H.264 insert start code test 2 packets\n");
|
||||
|
||||
//
|
||||
// TEST statistics
|
||||
//
|
||||
WebRtc_UWord32 numDeltaFrames = 0;
|
||||
WebRtc_UWord32 numKeyFrames = 0;
|
||||
jb.FrameStatistics(&numDeltaFrames, &numKeyFrames);
|
||||
|
||||
TEST(numDeltaFrames == 8);
|
||||
TEST(numKeyFrames == 1);
|
||||
|
||||
WebRtc_UWord32 frameRate;
|
||||
WebRtc_UWord32 bitRate;
|
||||
jb.IncomingRateStatistics(&frameRate, &bitRate);
|
||||
|
||||
// these depend on CPU speed works on a T61
|
||||
TEST(frameRate > 30);
|
||||
TEST(bitRate > 10000000);
|
||||
|
||||
|
||||
jb.Flush();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user