OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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 <limits> | 11 #include <limits> |
12 #include <memory> | 12 #include <memory> |
13 #include <numeric> | 13 #include <numeric> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "webrtc/base/checks.h" | |
17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 18 #include "webrtc/rtc_base/checks.h" |
19 #include "webrtc/test/gmock.h" | 19 #include "webrtc/test/gmock.h" |
20 #include "webrtc/test/gtest.h" | 20 #include "webrtc/test/gtest.h" |
21 #include "webrtc/voice_engine/transport_feedback_packet_loss_tracker.h" | 21 #include "webrtc/voice_engine/transport_feedback_packet_loss_tracker.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 constexpr int64_t kDefaultSendIntervalMs = 10; | 27 constexpr int64_t kDefaultSendIntervalMs = 10; |
28 constexpr int64_t kDefaultMaxWindowSizeMs = 500 * kDefaultSendIntervalMs; | 28 constexpr int64_t kDefaultMaxWindowSizeMs = 500 * kDefaultSendIntervalMs; |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 | 591 |
592 // All tests are run multiple times with various baseline sequence number, | 592 // All tests are run multiple times with various baseline sequence number, |
593 // to weed out potential bugs with wrap-around handling. | 593 // to weed out potential bugs with wrap-around handling. |
594 constexpr uint16_t kBases[] = {0x0000, 0x3456, 0xc032, 0xfffe}; | 594 constexpr uint16_t kBases[] = {0x0000, 0x3456, 0xc032, 0xfffe}; |
595 | 595 |
596 INSTANTIATE_TEST_CASE_P(_, | 596 INSTANTIATE_TEST_CASE_P(_, |
597 TransportFeedbackPacketLossTrackerTest, | 597 TransportFeedbackPacketLossTrackerTest, |
598 testing::ValuesIn(kBases)); | 598 testing::ValuesIn(kBases)); |
599 | 599 |
600 } // namespace webrtc | 600 } // namespace webrtc |
OLD | NEW |