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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "webrtc/test/testsupport/fileutils.h" | 52 #include "webrtc/test/testsupport/fileutils.h" |
53 | 53 |
54 namespace webrtc { | 54 namespace webrtc { |
55 | 55 |
56 // Maximum number of media packets allows for XOR (RFC 5109) code. | 56 // Maximum number of media packets allows for XOR (RFC 5109) code. |
57 enum { kMaxNumberMediaPackets = 48 }; | 57 enum { kMaxNumberMediaPackets = 48 }; |
58 | 58 |
59 // Maximum number of media packets allowed for each mask type. | 59 // Maximum number of media packets allowed for each mask type. |
60 const uint16_t kMaxMediaPackets[] = {kMaxNumberMediaPackets, 12}; | 60 const uint16_t kMaxMediaPackets[] = {kMaxNumberMediaPackets, 12}; |
61 | 61 |
62 // Maximum number of media packets allowed in this test. The burst mask types | |
63 // are currently defined up to (k=12,m=12). | |
64 const int kMaxMediaPacketsTest = 12; | |
65 | |
66 // Maximum number of FEC codes considered in this test. | |
67 const int kNumberCodes = kMaxMediaPacketsTest * (kMaxMediaPacketsTest + 1) / 2; | |
68 | |
69 // Maximum gap size for characterizing the consecutiveness of the loss. | 62 // Maximum gap size for characterizing the consecutiveness of the loss. |
70 const int kMaxGapSize = 2 * kMaxMediaPacketsTest; | 63 const int kMaxGapSize = 2 * kMaxMediaPacketsTest; |
71 | 64 |
72 // Number of gap levels written to file/output. | 65 // Number of gap levels written to file/output. |
73 const int kGapSizeOutput = 5; | 66 const int kGapSizeOutput = 5; |
74 | 67 |
75 // Maximum number of states for characterizing the residual loss distribution. | 68 // Maximum number of states for characterizing the residual loss distribution. |
76 const int kNumStatesDistribution = 2 * kMaxMediaPacketsTest * kMaxGapSize + 1; | 69 const int kNumStatesDistribution = 2 * kMaxMediaPacketsTest * kMaxGapSize + 1; |
77 | 70 |
78 // The code type. | 71 // The code type. |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 recovery_rate_per_loss[loss_number], | 1072 recovery_rate_per_loss[loss_number], |
1080 kRecoveryRateXorRandom[2]); | 1073 kRecoveryRateXorRandom[2]); |
1081 EXPECT_GE(kMetricsXorBursty[code_index]. | 1074 EXPECT_GE(kMetricsXorBursty[code_index]. |
1082 recovery_rate_per_loss[loss_number], | 1075 recovery_rate_per_loss[loss_number], |
1083 kRecoveryRateXorBursty[2]); | 1076 kRecoveryRateXorBursty[2]); |
1084 } | 1077 } |
1085 } | 1078 } |
1086 } | 1079 } |
1087 | 1080 |
1088 } // namespace webrtc | 1081 } // namespace webrtc |
OLD | NEW |