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

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

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 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 29 matching lines...) Expand all
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 "testing/gtest/include/gtest/gtest.h" 50 #include "webrtc/test/gtest.h"
51 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h" 51 #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 " 52 #include "webrtc/modules/rtp_rtcp/test/testFec/average_residual_loss_xor_codes.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.
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc ('k') | webrtc/modules/utility/include/mock/mock_process_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698