solenberg | 1372508 | 2015-11-25 08:16:52 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 18 | namespace webrtc { |
| 19 | namespace test { |
| 20 | |
| 21 | class 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)); |
solenberg | 358057b | 2015-11-27 10:46:42 -0800 | [diff] [blame] | 26 | 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 Solenberg | b572768 | 2015-12-04 15:22:19 +0100 | [diff] [blame] | 36 | MOCK_METHOD1(SetSendTelephoneEventPayloadType, bool(int payload_type)); |
| 37 | MOCK_METHOD2(SendTelephoneEventOutband, bool(uint8_t event, |
| 38 | uint32_t duration_ms)); |
solenberg | 1372508 | 2015-11-25 08:16:52 -0800 | [diff] [blame] | 39 | }; |
| 40 | } // namespace test |
| 41 | } // namespace webrtc |
| 42 | |
| 43 | #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ |