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 |
11 #ifndef WEBRTC_WIN | 11 #ifndef WEBRTC_WIN |
12 #include <sys/types.h> | 12 #include <sys/types.h> |
13 #include <unistd.h> | 13 #include <unistd.h> |
14 #endif | 14 #endif |
15 | 15 |
16 #include <algorithm> | 16 #include <algorithm> |
17 #include <sstream> | 17 #include <sstream> |
18 | 18 |
19 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/base/random.h" | 20 #include "webrtc/base/random.h" |
21 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 21 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
22 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test.h" |
23 #include "webrtc/modules/remote_bitrate_estimator/test/packet_receiver.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/test/packet_receiver.h" |
24 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" | 24 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" |
25 #include "webrtc/test/testsupport/fileutils.h" | 25 #include "webrtc/test/testsupport/fileutils.h" |
26 | 26 |
27 using std::string; | |
28 | |
29 namespace webrtc { | 27 namespace webrtc { |
30 namespace testing { | 28 namespace testing { |
31 namespace bwe { | 29 namespace bwe { |
32 | 30 |
33 // This test fixture is used to instantiate tests running with adaptive video | 31 // This test fixture is used to instantiate tests running with adaptive video |
34 // senders. | 32 // senders. |
35 class BweFeedbackTest | 33 class BweFeedbackTest |
36 : public BweTest, | 34 : public BweTest, |
37 public ::testing::TestWithParam<BandwidthEstimatorType> { | 35 public ::testing::TestWithParam<BandwidthEstimatorType> { |
38 public: | 36 public: |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 for (int i = 0; i < 2; ++i) { | 218 for (int i = 0; i < 2; ++i) { |
221 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); | 219 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); |
222 } | 220 } |
223 | 221 |
224 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, | 222 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, |
225 offset_ms); | 223 offset_ms); |
226 } | 224 } |
227 } // namespace bwe | 225 } // namespace bwe |
228 } // namespace testing | 226 } // namespace testing |
229 } // namespace webrtc | 227 } // namespace webrtc |
OLD | NEW |