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 <random> | 11 #include <random> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_rplr_
based.h" | 14 #include "webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_rplr_
based.h" |
15 #include "webrtc/test/gmock.h" | 15 #include "webrtc/test/gmock.h" |
16 #include "webrtc/test/gtest.h" | 16 #include "webrtc/test/gtest.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 using ::testing::NiceMock; | |
21 using ::testing::Return; | |
22 using ::testing::_; | |
23 | |
24 namespace { | 20 namespace { |
25 | 21 |
26 // The test uses the following settings: | 22 // The test uses the following settings: |
27 // | 23 // |
28 // recoverable ^ | 24 // recoverable ^ |
29 // packet-loss | | | | 25 // packet-loss | | | |
30 // | A| C| FEC | 26 // | A| C| FEC |
31 // | \ \ ON | 27 // | \ \ ON |
32 // | FEC \ D\_______ | 28 // | FEC \ D\_______ |
33 // | OFF B\_________ | 29 // | OFF B\_________ |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 kEnablingBandwidthHigh, kEnablingRecoverablePacketLossAtHighBw), | 410 kEnablingBandwidthHigh, kEnablingRecoverablePacketLossAtHighBw), |
415 Threshold( | 411 Threshold( |
416 kDisablingBandwidthLow, kDisablingRecoverablePacketLossAtLowBw, | 412 kDisablingBandwidthLow, kDisablingRecoverablePacketLossAtLowBw, |
417 kDisablingBandwidthHigh, kDisablingRecoverablePacketLossAtHighBw), | 413 kDisablingBandwidthHigh, kDisablingRecoverablePacketLossAtHighBw), |
418 0, nullptr)), | 414 0, nullptr)), |
419 "Check failed"); | 415 "Check failed"); |
420 } | 416 } |
421 #endif | 417 #endif |
422 | 418 |
423 } // namespace webrtc | 419 } // namespace webrtc |
OLD | NEW |