OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 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_ |
| 13 |
| 14 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" |
| 15 #include "webrtc/test/gmock.h" |
| 16 |
| 17 namespace webrtc { |
| 18 |
| 19 class MockAudioNetworkAdaptor : public AudioNetworkAdaptor { |
| 20 public: |
| 21 virtual ~MockAudioNetworkAdaptor() { Die(); } |
| 22 MOCK_METHOD0(Die, void()); |
| 23 |
| 24 MOCK_METHOD1(SetUplinkBandwidth, void(int uplink_bandwidth_bps)); |
| 25 |
| 26 MOCK_METHOD1(SetUplinkPacketLossFraction, |
| 27 void(float uplink_packet_loss_fraction)); |
| 28 |
| 29 MOCK_METHOD1(SetRtt, void(int rtt_ms)); |
| 30 |
| 31 MOCK_METHOD1(SetTargetAudioBitrate, void(int target_audio_bitrate_bps)); |
| 32 |
| 33 MOCK_METHOD2(SetReceiverFrameLengthRange, |
| 34 void(int min_frame_length_ms, int max_frame_length_ms)); |
| 35 |
| 36 MOCK_METHOD0(GetEncoderRuntimeConfig, EncoderRuntimeConfig()); |
| 37 |
| 38 MOCK_METHOD1(StartDebugDump, void(FILE* file_handle)); |
| 39 |
| 40 MOCK_METHOD0(StopDebugDump, void()); |
| 41 }; |
| 42 |
| 43 } // namespace webrtc |
| 44 |
| 45 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NET
WORK_ADAPTOR_H_ |
OLD | NEW |