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 MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NETWORK_ADAPTOR_H_
12 #define MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NETWORK_ADAPTOR_H_
13 
14 #include "modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h"
15 #include "test/gmock.h"
16 
17 namespace webrtc {
18 
19 class MockAudioNetworkAdaptor : public AudioNetworkAdaptor {
20  public:
~MockAudioNetworkAdaptor()21   ~MockAudioNetworkAdaptor() override { Die(); }
22   MOCK_METHOD(void, Die, ());
23 
24   MOCK_METHOD(void, SetUplinkBandwidth, (int uplink_bandwidth_bps), (override));
25 
26   MOCK_METHOD(void,
27               SetUplinkPacketLossFraction,
28               (float uplink_packet_loss_fraction),
29               (override));
30 
31   MOCK_METHOD(void, SetRtt, (int rtt_ms), (override));
32 
33   MOCK_METHOD(void,
34               SetTargetAudioBitrate,
35               (int target_audio_bitrate_bps),
36               (override));
37 
38   MOCK_METHOD(void,
39               SetOverhead,
40               (size_t overhead_bytes_per_packet),
41               (override));
42 
43   MOCK_METHOD(AudioEncoderRuntimeConfig,
44               GetEncoderRuntimeConfig,
45               (),
46               (override));
47 
48   MOCK_METHOD(void, StartDebugDump, (FILE * file_handle), (override));
49 
50   MOCK_METHOD(void, StopDebugDump, (), (override));
51 
52   MOCK_METHOD(ANAStats, GetStats, (), (const, override));
53 };
54 
55 }  // namespace webrtc
56 
57 #endif  // MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_AUDIO_NETWORK_ADAPTOR_H_
58