OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ | 11 #ifndef WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ |
12 #define WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ | 12 #define WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "webrtc/voice_engine/channel_proxy.h" | 16 #include "webrtc/voice_engine/channel_proxy.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 class MockVoEChannelProxy : public voe::ChannelProxy { | 21 class MockVoEChannelProxy : public voe::ChannelProxy { |
22 public: | 22 public: |
23 MOCK_METHOD1(SetRTCPStatus, void(bool enable)); | 23 MOCK_METHOD1(SetRTCPStatus, void(bool enable)); |
24 MOCK_METHOD1(SetLocalSSRC, void(uint32_t ssrc)); | 24 MOCK_METHOD1(SetLocalSSRC, void(uint32_t ssrc)); |
25 MOCK_METHOD1(SetRTCP_CNAME, void(const std::string& c_name)); | 25 MOCK_METHOD1(SetRTCP_CNAME, void(const std::string& c_name)); |
26 MOCK_METHOD2(SetSendAbsoluteSenderTimeStatus, void(bool enable, int id)); | 26 MOCK_METHOD2(SetSendAbsoluteSenderTimeStatus, void(bool enable, int id)); |
27 MOCK_METHOD2(SetSendAudioLevelIndicationStatus, void(bool enable, int id)); | 27 MOCK_METHOD2(SetSendAudioLevelIndicationStatus, void(bool enable, int id)); |
28 MOCK_METHOD1(EnableSendTransportSequenceNumber, void(int id)); | 28 MOCK_METHOD1(EnableSendTransportSequenceNumber, void(int id)); |
29 MOCK_METHOD1(EnableReceiveTransportSequenceNumber, void(int id)); | |
the sun
2016/01/21 12:24:52
nit: Move both tseq# methods down below the ast/le
stefan-webrtc
2016/01/21 13:17:43
Done.
| |
29 MOCK_METHOD2(SetReceiveAbsoluteSenderTimeStatus, void(bool enable, int id)); | 30 MOCK_METHOD2(SetReceiveAbsoluteSenderTimeStatus, void(bool enable, int id)); |
30 MOCK_METHOD2(SetReceiveAudioLevelIndicationStatus, void(bool enable, int id)); | 31 MOCK_METHOD2(SetReceiveAudioLevelIndicationStatus, void(bool enable, int id)); |
31 MOCK_METHOD3(SetCongestionControlObjects, | 32 MOCK_METHOD3(SetCongestionControlObjects, |
32 void(RtpPacketSender* rtp_packet_sender, | 33 void(RtpPacketSender* rtp_packet_sender, |
33 TransportFeedbackObserver* transport_feedback_observer, | 34 TransportFeedbackObserver* transport_feedback_observer, |
34 PacketRouter* seq_num_allocator)); | 35 PacketRouter* seq_num_allocator)); |
35 MOCK_CONST_METHOD0(GetRTCPStatistics, CallStatistics()); | 36 MOCK_CONST_METHOD0(GetRTCPStatistics, CallStatistics()); |
36 MOCK_CONST_METHOD0(GetRemoteRTCPReportBlocks, std::vector<ReportBlock>()); | 37 MOCK_CONST_METHOD0(GetRemoteRTCPReportBlocks, std::vector<ReportBlock>()); |
37 MOCK_CONST_METHOD0(GetNetworkStatistics, NetworkStatistics()); | 38 MOCK_CONST_METHOD0(GetNetworkStatistics, NetworkStatistics()); |
38 MOCK_CONST_METHOD0(GetDecodingCallStatistics, AudioDecodingCallStats()); | 39 MOCK_CONST_METHOD0(GetDecodingCallStatistics, AudioDecodingCallStats()); |
39 MOCK_CONST_METHOD0(GetSpeechOutputLevelFullRange, int32_t()); | 40 MOCK_CONST_METHOD0(GetSpeechOutputLevelFullRange, int32_t()); |
40 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t()); | 41 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t()); |
41 MOCK_METHOD1(SetSendTelephoneEventPayloadType, bool(int payload_type)); | 42 MOCK_METHOD1(SetSendTelephoneEventPayloadType, bool(int payload_type)); |
42 MOCK_METHOD2(SendTelephoneEventOutband, bool(uint8_t event, | 43 MOCK_METHOD2(SendTelephoneEventOutband, bool(uint8_t event, |
43 uint32_t duration_ms)); | 44 uint32_t duration_ms)); |
44 }; | 45 }; |
45 } // namespace test | 46 } // namespace test |
46 } // namespace webrtc | 47 } // namespace webrtc |
47 | 48 |
48 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ | 49 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ |
OLD | NEW |