OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |