| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2017 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 <sstream> | 11 #include <sstream> |
| 12 | 12 |
| 13 #include "webrtc/p2p/base/packetlossestimator.h" | 13 #include "webrtc/p2p/base/packetlossestimator.h" |
| 14 | 14 |
| 15 #include "webrtc/base/checks.h" | 15 #include "webrtc/rtc_base/checks.h" |
| 16 | 16 |
| 17 namespace cricket { | 17 namespace cricket { |
| 18 | 18 |
| 19 PacketLossEstimator::PacketLossEstimator(int64_t consider_lost_after_ms, | 19 PacketLossEstimator::PacketLossEstimator(int64_t consider_lost_after_ms, |
| 20 int64_t forget_after_ms) | 20 int64_t forget_after_ms) |
| 21 : consider_lost_after_ms_(consider_lost_after_ms), | 21 : consider_lost_after_ms_(consider_lost_after_ms), |
| 22 forget_after_ms_(forget_after_ms) { | 22 forget_after_ms_(forget_after_ms) { |
| 23 RTC_DCHECK_LT(consider_lost_after_ms, forget_after_ms); | 23 RTC_DCHECK_LT(consider_lost_after_ms, forget_after_ms); |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 if (count == max) { | 117 if (count == max) { |
| 118 oss << "..."; | 118 oss << "..."; |
| 119 break; | 119 break; |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 | 122 |
| 123 return oss.str(); | 123 return oss.str(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace cricket | 126 } // namespace cricket |
| OLD | NEW |