OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NETWOR
K_ADAPTOR_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NETWOR
K_ADAPTOR_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NETWOR
K_ADAPTOR_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NETWOR
K_ADAPTOR_H_ |
13 | 13 |
14 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" | 14 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" |
15 #include "webrtc/test/gmock.h" | 15 #include "webrtc/test/gmock.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 class MockAudioNetworkAdaptor : public AudioNetworkAdaptor { | 19 class MockAudioNetworkAdaptor : public AudioNetworkAdaptor { |
20 public: | 20 public: |
21 virtual ~MockAudioNetworkAdaptor() { Die(); } | 21 virtual ~MockAudioNetworkAdaptor() { Die(); } |
22 MOCK_METHOD0(Die, void()); | 22 MOCK_METHOD0(Die, void()); |
23 | 23 |
24 MOCK_METHOD1(SetUplinkBandwidth, void(int uplink_bandwidth_bps)); | 24 MOCK_METHOD1(SetUplinkBandwidth, void(int uplink_bandwidth_bps)); |
25 | 25 |
26 MOCK_METHOD1(SetUplinkPacketLossFraction, | 26 MOCK_METHOD1(SetUplinkPacketLossFraction, |
27 void(float uplink_packet_loss_fraction)); | 27 void(float uplink_packet_loss_fraction)); |
28 | 28 |
| 29 MOCK_METHOD1(SetUplinkRecoverablePacketLossFraction, |
| 30 void(float uplink_recoverable_packet_loss_fraction)); |
| 31 |
29 MOCK_METHOD1(SetRtt, void(int rtt_ms)); | 32 MOCK_METHOD1(SetRtt, void(int rtt_ms)); |
30 | 33 |
31 MOCK_METHOD1(SetTargetAudioBitrate, void(int target_audio_bitrate_bps)); | 34 MOCK_METHOD1(SetTargetAudioBitrate, void(int target_audio_bitrate_bps)); |
32 | 35 |
33 MOCK_METHOD1(SetOverhead, void(size_t overhead_bytes_per_packet)); | 36 MOCK_METHOD1(SetOverhead, void(size_t overhead_bytes_per_packet)); |
34 | 37 |
35 MOCK_METHOD0(GetEncoderRuntimeConfig, EncoderRuntimeConfig()); | 38 MOCK_METHOD0(GetEncoderRuntimeConfig, EncoderRuntimeConfig()); |
36 | 39 |
37 MOCK_METHOD1(StartDebugDump, void(FILE* file_handle)); | 40 MOCK_METHOD1(StartDebugDump, void(FILE* file_handle)); |
38 | 41 |
39 MOCK_METHOD0(StopDebugDump, void()); | 42 MOCK_METHOD0(StopDebugDump, void()); |
40 }; | 43 }; |
41 | 44 |
42 } // namespace webrtc | 45 } // namespace webrtc |
43 | 46 |
44 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NET
WORK_ADAPTOR_H_ | 47 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NET
WORK_ADAPTOR_H_ |
OLD | NEW |