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

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

Issue 1506823002: [rtp_rtcp] fixed namespaces lint warnings (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years 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
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698