From ece4b2869c356ffd74efa5ceeae982cb0ce334f4 Mon Sep 17 00:00:00 2001 From: "marpan@webrtc.org" Date: Tue, 10 Mar 2015 21:48:20 +0000 Subject: [PATCH] FecTest: Reduce loop over numMediaPackets in test_fec. Speed up the test by factor of ~2. TBR=pbos@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/40289004 Cr-Commit-Position: refs/heads/master@{#8676} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8676 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc b/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc index f1353b8d8d..a009f3aa92 100644 --- a/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc +++ b/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc @@ -161,8 +161,8 @@ TEST(FecTest, FecTest) { numFecPackets++) { // Loop over numImpPackets: usually <= (0.3*numMediaPackets). - // For this test we check up to ~ (0.5*numMediaPackets). - uint32_t maxNumImpPackets = numMediaPackets / 2 + 1; + // For this test we check up to ~ (numMediaPackets / 4). + uint32_t maxNumImpPackets = numMediaPackets / 4 + 1; for (uint32_t numImpPackets = 0; numImpPackets <= maxNumImpPackets && numImpPackets <= packetMaskMax; numImpPackets++) {