OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 11 matching lines...) Expand all Loading... |
22 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" | 22 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" |
23 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" |
24 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 24 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" |
25 #include "webrtc/system_wrappers/interface/thread_wrapper.h" | 25 #include "webrtc/system_wrappers/interface/thread_wrapper.h" |
26 #include "webrtc/test/testsupport/perf_test.h" | 26 #include "webrtc/test/testsupport/perf_test.h" |
27 #include "webrtc/video/rampup_tests.h" | 27 #include "webrtc/video/rampup_tests.h" |
28 | 28 |
29 namespace webrtc { | 29 namespace webrtc { |
30 namespace { | 30 namespace { |
31 | 31 |
32 static const int64_t kPollIntervalMs = 250; | 32 static const int64_t kPollIntervalMs = 20; |
33 | 33 |
34 std::vector<uint32_t> GenerateSsrcs(size_t num_streams, | 34 std::vector<uint32_t> GenerateSsrcs(size_t num_streams, |
35 uint32_t ssrc_offset) { | 35 uint32_t ssrc_offset) { |
36 std::vector<uint32_t> ssrcs; | 36 std::vector<uint32_t> ssrcs; |
37 for (size_t i = 0; i != num_streams; ++i) | 37 for (size_t i = 0; i != num_streams; ++i) |
38 ssrcs.push_back(static_cast<uint32_t>(ssrc_offset + i)); | 38 ssrcs.push_back(static_cast<uint32_t>(ssrc_offset + i)); |
39 return ssrcs; | 39 return ssrcs; |
40 } | 40 } |
41 } // namespace | 41 } // namespace |
42 | 42 |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 RampUpTester test(3, 0, RtpExtension::kTransportSequenceNumber, true, true); | 491 RampUpTester test(3, 0, RtpExtension::kTransportSequenceNumber, true, true); |
492 RunBaseTest(&test); | 492 RunBaseTest(&test); |
493 } | 493 } |
494 | 494 |
495 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { | 495 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { |
496 RampUpTester test(1, 0.9 * kSingleStreamTargetBps, | 496 RampUpTester test(1, 0.9 * kSingleStreamTargetBps, |
497 RtpExtension::kTransportSequenceNumber, false, false); | 497 RtpExtension::kTransportSequenceNumber, false, false); |
498 RunBaseTest(&test); | 498 RunBaseTest(&test); |
499 } | 499 } |
500 } // namespace webrtc | 500 } // namespace webrtc |
OLD | NEW |