blob: fef8b7d8996e5851d43119cafb72ee631a489186 [file] [log] [blame]
solenberg13725082015-11-25 08:16:52 -08001/*
2 * Copyright (c) 2015 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_TEST_MOCK_VOE_CHANNEL_PROXY_H_
12#define WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_
13
14#include <string>
15#include "testing/gmock/include/gmock/gmock.h"
16#include "webrtc/voice_engine/channel_proxy.h"
17
18namespace webrtc {
19namespace test {
20
21class MockVoEChannelProxy : public voe::ChannelProxy {
22 public:
23 MOCK_METHOD1(SetRTCPStatus, void(bool enable));
24 MOCK_METHOD1(SetLocalSSRC, void(uint32_t ssrc));
25 MOCK_METHOD1(SetRTCP_CNAME, void(const std::string& c_name));
solenberg971cab02016-06-14 10:02:41 -070026 MOCK_METHOD2(SetNACKStatus, void(bool enable, int max_packets));
solenberg358057b2015-11-27 10:46:42 -080027 MOCK_METHOD2(SetSendAbsoluteSenderTimeStatus, void(bool enable, int id));
28 MOCK_METHOD2(SetSendAudioLevelIndicationStatus, void(bool enable, int id));
29 MOCK_METHOD2(SetReceiveAbsoluteSenderTimeStatus, void(bool enable, int id));
30 MOCK_METHOD2(SetReceiveAudioLevelIndicationStatus, void(bool enable, int id));
stefan3313ec92016-01-21 06:32:43 -080031 MOCK_METHOD1(EnableSendTransportSequenceNumber, void(int id));
32 MOCK_METHOD1(EnableReceiveTransportSequenceNumber, void(int id));
stefanbba9dec2016-02-01 04:39:55 -080033 MOCK_METHOD3(RegisterSenderCongestionControlObjects,
Stefan Holmerb86d4e42015-12-07 10:26:18 +010034 void(RtpPacketSender* rtp_packet_sender,
35 TransportFeedbackObserver* transport_feedback_observer,
stefanbba9dec2016-02-01 04:39:55 -080036 PacketRouter* packet_router));
37 MOCK_METHOD1(RegisterReceiverCongestionControlObjects,
38 void(PacketRouter* packet_router));
39 MOCK_METHOD0(ResetCongestionControlObjects, void());
solenberg358057b2015-11-27 10:46:42 -080040 MOCK_CONST_METHOD0(GetRTCPStatistics, CallStatistics());
41 MOCK_CONST_METHOD0(GetRemoteRTCPReportBlocks, std::vector<ReportBlock>());
42 MOCK_CONST_METHOD0(GetNetworkStatistics, NetworkStatistics());
43 MOCK_CONST_METHOD0(GetDecodingCallStatistics, AudioDecodingCallStats());
44 MOCK_CONST_METHOD0(GetSpeechOutputLevelFullRange, int32_t());
45 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t());
Fredrik Solenbergb5727682015-12-04 15:22:19 +010046 MOCK_METHOD1(SetSendTelephoneEventPayloadType, bool(int payload_type));
solenberg8842c3e2016-03-11 03:06:41 -080047 MOCK_METHOD2(SendTelephoneEventOutband, bool(int event, int duration_ms));
solenberg94218532016-06-16 10:53:22 -070048 MOCK_METHOD1(SetInputMute, void(bool muted));
solenberg217fb662016-06-17 08:30:54 -070049 // TODO(solenberg): Talk the compiler into accepting this mock method:
50 // MOCK_METHOD1(SetSink, void(std::unique_ptr<AudioSinkInterface> sink));
mflodman3d7db262016-04-29 00:57:13 -070051 MOCK_METHOD1(RegisterExternalTransport, void(Transport* transport));
52 MOCK_METHOD0(DeRegisterExternalTransport, void());
53 MOCK_METHOD3(ReceivedRTPPacket, bool(const uint8_t* packet,
54 size_t length,
55 const PacketTime& packet_time));
56 MOCK_METHOD2(ReceivedRTCPPacket, bool(const uint8_t* packet, size_t length));
ossu29b1a8d2016-06-13 07:34:51 -070057 MOCK_CONST_METHOD0(GetAudioDecoderFactory,
58 const rtc::scoped_refptr<AudioDecoderFactory>&());
solenberg217fb662016-06-17 08:30:54 -070059 MOCK_METHOD1(SetChannelOutputVolumeScaling, void(float scaling));
ivoc14d5dbe2016-07-04 07:06:55 -070060 MOCK_METHOD1(SetRtcEventLog, void(RtcEventLog* event_log));
solenberg13725082015-11-25 08:16:52 -080061};
62} // namespace test
63} // namespace webrtc
64
65#endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_