blob: b5d79c18eacb9fad66074ed0d9f41dced24cf126 [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));
solenberg358057b2015-11-27 10:46:42 -080026 MOCK_METHOD2(SetSendAbsoluteSenderTimeStatus, void(bool enable, int id));
27 MOCK_METHOD2(SetSendAudioLevelIndicationStatus, void(bool enable, int id));
Stefan Holmerb86d4e42015-12-07 10:26:18 +010028 MOCK_METHOD1(EnableSendTransportSequenceNumber, void(int id));
solenberg358057b2015-11-27 10:46:42 -080029 MOCK_METHOD2(SetReceiveAbsoluteSenderTimeStatus, void(bool enable, int id));
30 MOCK_METHOD2(SetReceiveAudioLevelIndicationStatus, void(bool enable, int id));
Stefan Holmerb86d4e42015-12-07 10:26:18 +010031 MOCK_METHOD3(SetCongestionControlObjects,
32 void(RtpPacketSender* rtp_packet_sender,
33 TransportFeedbackObserver* transport_feedback_observer,
34 PacketRouter* seq_num_allocator));
solenberg358057b2015-11-27 10:46:42 -080035 MOCK_CONST_METHOD0(GetRTCPStatistics, CallStatistics());
36 MOCK_CONST_METHOD0(GetRemoteRTCPReportBlocks, std::vector<ReportBlock>());
37 MOCK_CONST_METHOD0(GetNetworkStatistics, NetworkStatistics());
38 MOCK_CONST_METHOD0(GetDecodingCallStatistics, AudioDecodingCallStats());
39 MOCK_CONST_METHOD0(GetSpeechOutputLevelFullRange, int32_t());
40 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t());
Fredrik Solenbergb5727682015-12-04 15:22:19 +010041 MOCK_METHOD1(SetSendTelephoneEventPayloadType, bool(int payload_type));
42 MOCK_METHOD2(SendTelephoneEventOutband, bool(uint8_t event,
43 uint32_t duration_ms));
solenberg13725082015-11-25 08:16:52 -080044};
45} // namespace test
46} // namespace webrtc
47
48#endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_