blob: a0f0464111635a513521afca2ec9c5c27a96056f [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));
28 MOCK_METHOD2(SetReceiveAbsoluteSenderTimeStatus, void(bool enable, int id));
29 MOCK_METHOD2(SetReceiveAudioLevelIndicationStatus, void(bool enable, int id));
30 MOCK_CONST_METHOD0(GetRTCPStatistics, CallStatistics());
31 MOCK_CONST_METHOD0(GetRemoteRTCPReportBlocks, std::vector<ReportBlock>());
32 MOCK_CONST_METHOD0(GetNetworkStatistics, NetworkStatistics());
33 MOCK_CONST_METHOD0(GetDecodingCallStatistics, AudioDecodingCallStats());
34 MOCK_CONST_METHOD0(GetSpeechOutputLevelFullRange, int32_t());
35 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t());
Fredrik Solenbergb5727682015-12-04 15:22:19 +010036 MOCK_METHOD1(SetSendTelephoneEventPayloadType, bool(int payload_type));
37 MOCK_METHOD2(SendTelephoneEventOutband, bool(uint8_t event,
38 uint32_t duration_ms));
solenberg13725082015-11-25 08:16:52 -080039};
40} // namespace test
41} // namespace webrtc
42
43#endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_