| 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/random.h" | 20 #include "webrtc/base/random.h" |
| 20 #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" |
| 21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test.h" |
| 22 #include "webrtc/modules/remote_bitrate_estimator/test/packet_receiver.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/test/packet_receiver.h" |
| 23 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" | 24 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" |
| 24 #include "webrtc/test/testsupport/fileutils.h" | 25 #include "webrtc/test/testsupport/fileutils.h" |
| 25 | 26 |
| 26 using std::string; | 27 using std::string; |
| 27 | 28 |
| 28 namespace webrtc { | 29 namespace webrtc { |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 for (int i = 0; i < 2; ++i) { | 221 for (int i = 0; i < 2; ++i) { |
| 221 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); | 222 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); |
| 222 } | 223 } |
| 223 | 224 |
| 224 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, | 225 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, |
| 225 offset_ms); | 226 offset_ms); |
| 226 } | 227 } |
| 227 } // namespace bwe | 228 } // namespace bwe |
| 228 } // namespace testing | 229 } // namespace testing |
| 229 } // namespace webrtc | 230 } // namespace webrtc |
| OLD | NEW |