OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 |
11 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" |
12 | 12 |
13 #include <limits> | 13 #include <limits> |
14 | 14 |
15 #include "webrtc/base/common.h" | 15 #include "webrtc/base/common.h" |
| 16 #include "webrtc/base/constructormagic.h" |
16 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/nada.h" | 17 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/nada.h" |
17 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/remb.h" | 18 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/remb.h" |
18 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.h" | 19 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.h" |
19 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/tcp.h" | 20 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/tcp.h" |
20 | 21 |
21 namespace webrtc { | 22 namespace webrtc { |
22 namespace testing { | 23 namespace testing { |
23 namespace bwe { | 24 namespace bwe { |
24 | 25 |
25 // With the assumption that packet loss is lower than 97%, the max gap | 26 // With the assumption that packet loss is lower than 97%, the max gap |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 272 |
272 float LossAccount::LossRatio() { | 273 float LossAccount::LossRatio() { |
273 if (num_total == 0) | 274 if (num_total == 0) |
274 return 0.0f; | 275 return 0.0f; |
275 return static_cast<float>(num_lost) / num_total; | 276 return static_cast<float>(num_lost) / num_total; |
276 } | 277 } |
277 | 278 |
278 } // namespace bwe | 279 } // namespace bwe |
279 } // namespace testing | 280 } // namespace testing |
280 } // namespace webrtc | 281 } // namespace webrtc |
OLD | NEW |