Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc

Issue 1694353003: iOS: Add resource files for tests and implement OutputPath (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix ifdef for Android build Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 receivedPacket->pkt->length); 74 receivedPacket->pkt->length);
75 duplicatePacket->pkt->length = receivedPacket->pkt->length; 75 duplicatePacket->pkt->length = receivedPacket->pkt->length;
76 76
77 toDecodeList->push_back(duplicatePacket); 77 toDecodeList->push_back(duplicatePacket);
78 randomVariable = random->Rand<float>(); 78 randomVariable = random->Rand<float>();
79 } 79 }
80 receivedPacketList->erase(it); 80 receivedPacketList->erase(it);
81 } 81 }
82 } 82 }
83 83
84 TEST(FecTest, FecTest) { 84 // Too slow to finish before timeout on iOS. See webrtc:4755.
85 #if defined(WEBRTC_IOS)
86 #define MAYBE_FecTest DISABLED_FecTest
87 #else
88 #define MAYBE_FecTest FecTest
89 #endif
90 TEST(FecTest, MAYBE_FecTest) {
85 // TODO(marpan): Split this function into subroutines/helper functions. 91 // TODO(marpan): Split this function into subroutines/helper functions.
86 enum { kMaxNumberMediaPackets = 48 }; 92 enum { kMaxNumberMediaPackets = 48 };
87 enum { kMaxNumberFecPackets = 48 }; 93 enum { kMaxNumberFecPackets = 48 };
88 94
89 const uint32_t kNumMaskBytesL0 = 2; 95 const uint32_t kNumMaskBytesL0 = 2;
90 const uint32_t kNumMaskBytesL1 = 6; 96 const uint32_t kNumMaskBytesL1 = 6;
91 97
92 // FOR UEP 98 // FOR UEP
93 const bool kUseUnequalProtection = true; 99 const bool kUseUnequalProtection = true;
94 100
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 } // loop over mask types 479 } // loop over mask types
474 480
475 // Have DecodeFEC free allocated memory. 481 // Have DecodeFEC free allocated memory.
476 fec.ResetState(&recoveredPacketList); 482 fec.ResetState(&recoveredPacketList);
477 ASSERT_TRUE(recoveredPacketList.empty()) 483 ASSERT_TRUE(recoveredPacketList.empty())
478 << "Recovered packet list is not empty"; 484 << "Recovered packet list is not empty";
479 } 485 }
480 486
481 } // namespace test 487 } // namespace test
482 } // namespace webrtc 488 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/modules.gyp ('k') | webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698