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 29 matching lines...) Expand all Loading... |
40 * The type of packet/symbol loss models considered in this test are: | 40 * The type of packet/symbol loss models considered in this test are: |
41 * (1) Random loss: Bernoulli process, characterized by the average loss rate. | 41 * (1) Random loss: Bernoulli process, characterized by the average loss rate. |
42 * (2) Bursty loss: Markov chain (Gilbert-Elliot model), characterized by two | 42 * (2) Bursty loss: Markov chain (Gilbert-Elliot model), characterized by two |
43 * parameters: average loss rate and average burst length. | 43 * parameters: average loss rate and average burst length. |
44 */ | 44 */ |
45 | 45 |
46 #include <math.h> | 46 #include <math.h> |
47 | 47 |
48 #include <memory> | 48 #include <memory> |
49 | 49 |
50 #include "webrtc/test/gtest.h" | |
51 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h" | 50 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h" |
52 #include "webrtc/modules/rtp_rtcp/test/testFec/average_residual_loss_xor_codes.h
" | 51 #include "webrtc/modules/rtp_rtcp/test/testFec/average_residual_loss_xor_codes.h
" |
| 52 #include "webrtc/test/gtest.h" |
53 #include "webrtc/test/testsupport/fileutils.h" | 53 #include "webrtc/test/testsupport/fileutils.h" |
54 | 54 |
55 namespace webrtc { | 55 namespace webrtc { |
56 | 56 |
57 // Maximum number of media packets allows for XOR (RFC 5109) code. | 57 // Maximum number of media packets allows for XOR (RFC 5109) code. |
58 enum { kMaxNumberMediaPackets = 48 }; | 58 enum { kMaxNumberMediaPackets = 48 }; |
59 | 59 |
60 // Maximum number of media packets allowed for each mask type. | 60 // Maximum number of media packets allowed for each mask type. |
61 const uint16_t kMaxMediaPackets[] = {kMaxNumberMediaPackets, 12}; | 61 const uint16_t kMaxMediaPackets[] = {kMaxNumberMediaPackets, 12}; |
62 | 62 |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 recovery_rate_per_loss[loss_number], | 1072 recovery_rate_per_loss[loss_number], |
1073 kRecoveryRateXorRandom[2]); | 1073 kRecoveryRateXorRandom[2]); |
1074 EXPECT_GE(kMetricsXorBursty[code_index]. | 1074 EXPECT_GE(kMetricsXorBursty[code_index]. |
1075 recovery_rate_per_loss[loss_number], | 1075 recovery_rate_per_loss[loss_number], |
1076 kRecoveryRateXorBursty[2]); | 1076 kRecoveryRateXorBursty[2]); |
1077 } | 1077 } |
1078 } | 1078 } |
1079 } | 1079 } |
1080 | 1080 |
1081 } // namespace webrtc | 1081 } // namespace webrtc |
OLD | NEW |