Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: webrtc/test/mock_voe_channel_proxy.h

Issue 2697833002: Replace AudioReceiveStream::DeliverRtp with OnRtpPacket. (Closed)
Patch Set: Another return value fix. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15
16 #include "webrtc/test/gmock.h" 16 #include "webrtc/test/gmock.h"
17 #include "webrtc/voice_engine/channel_proxy.h" 17 #include "webrtc/voice_engine/channel_proxy.h"
18 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h"
18 19
19 namespace webrtc { 20 namespace webrtc {
20 namespace test { 21 namespace test {
21 22
22 class MockVoEChannelProxy : public voe::ChannelProxy { 23 class MockVoEChannelProxy : public voe::ChannelProxy {
23 public: 24 public:
24 MOCK_METHOD1(SetRTCPStatus, void(bool enable)); 25 MOCK_METHOD1(SetRTCPStatus, void(bool enable));
25 MOCK_METHOD1(SetLocalSSRC, void(uint32_t ssrc)); 26 MOCK_METHOD1(SetLocalSSRC, void(uint32_t ssrc));
26 MOCK_METHOD1(SetRTCP_CNAME, void(const std::string& c_name)); 27 MOCK_METHOD1(SetRTCP_CNAME, void(const std::string& c_name));
27 MOCK_METHOD2(SetNACKStatus, void(bool enable, int max_packets)); 28 MOCK_METHOD2(SetNACKStatus, void(bool enable, int max_packets));
(...skipping 17 matching lines...) Expand all
45 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t()); 46 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t());
46 MOCK_METHOD2(SetSendTelephoneEventPayloadType, bool(int payload_type, 47 MOCK_METHOD2(SetSendTelephoneEventPayloadType, bool(int payload_type,
47 int payload_frequency)); 48 int payload_frequency));
48 MOCK_METHOD2(SendTelephoneEventOutband, bool(int event, int duration_ms)); 49 MOCK_METHOD2(SendTelephoneEventOutband, bool(int event, int duration_ms));
49 MOCK_METHOD2(SetBitrate, void(int bitrate_bps, int64_t probing_interval_ms)); 50 MOCK_METHOD2(SetBitrate, void(int bitrate_bps, int64_t probing_interval_ms));
50 // TODO(solenberg): Talk the compiler into accepting this mock method: 51 // TODO(solenberg): Talk the compiler into accepting this mock method:
51 // MOCK_METHOD1(SetSink, void(std::unique_ptr<AudioSinkInterface> sink)); 52 // MOCK_METHOD1(SetSink, void(std::unique_ptr<AudioSinkInterface> sink));
52 MOCK_METHOD1(SetInputMute, void(bool muted)); 53 MOCK_METHOD1(SetInputMute, void(bool muted));
53 MOCK_METHOD1(RegisterExternalTransport, void(Transport* transport)); 54 MOCK_METHOD1(RegisterExternalTransport, void(Transport* transport));
54 MOCK_METHOD0(DeRegisterExternalTransport, void()); 55 MOCK_METHOD0(DeRegisterExternalTransport, void());
55 MOCK_METHOD3(ReceivedRTPPacket, bool(const uint8_t* packet, 56 MOCK_METHOD1(OnRtpPacket, void(const RtpPacketReceived& packet));
56 size_t length,
57 const PacketTime& packet_time));
58 MOCK_METHOD2(ReceivedRTCPPacket, bool(const uint8_t* packet, size_t length)); 57 MOCK_METHOD2(ReceivedRTCPPacket, bool(const uint8_t* packet, size_t length));
59 MOCK_CONST_METHOD0(GetAudioDecoderFactory, 58 MOCK_CONST_METHOD0(GetAudioDecoderFactory,
60 const rtc::scoped_refptr<AudioDecoderFactory>&()); 59 const rtc::scoped_refptr<AudioDecoderFactory>&());
61 MOCK_METHOD1(SetChannelOutputVolumeScaling, void(float scaling)); 60 MOCK_METHOD1(SetChannelOutputVolumeScaling, void(float scaling));
62 MOCK_METHOD1(SetRtcEventLog, void(RtcEventLog* event_log)); 61 MOCK_METHOD1(SetRtcEventLog, void(RtcEventLog* event_log));
63 MOCK_METHOD1(SetRtcpRttStats, void(RtcpRttStats* rtcp_rtt_stats)); 62 MOCK_METHOD1(SetRtcpRttStats, void(RtcpRttStats* rtcp_rtt_stats));
64 MOCK_METHOD1(EnableAudioNetworkAdaptor, 63 MOCK_METHOD1(EnableAudioNetworkAdaptor,
65 void(const std::string& config_string)); 64 void(const std::string& config_string));
66 MOCK_METHOD0(DisableAudioNetworkAdaptor, void()); 65 MOCK_METHOD0(DisableAudioNetworkAdaptor, void());
67 MOCK_METHOD2(SetReceiverFrameLengthRange, 66 MOCK_METHOD2(SetReceiverFrameLengthRange,
(...skipping 19 matching lines...) Expand all
87 MOCK_METHOD1(SetOpusDtx, bool(bool enable)); 86 MOCK_METHOD1(SetOpusDtx, bool(bool enable));
88 MOCK_METHOD1(SetOpusMaxPlaybackRate, bool(int frequency_hz)); 87 MOCK_METHOD1(SetOpusMaxPlaybackRate, bool(int frequency_hz));
89 MOCK_METHOD1(SetSendCodec, bool(const CodecInst& codec_inst)); 88 MOCK_METHOD1(SetSendCodec, bool(const CodecInst& codec_inst));
90 MOCK_METHOD2(SetSendCNPayloadType, 89 MOCK_METHOD2(SetSendCNPayloadType,
91 bool(int type, PayloadFrequencies frequency)); 90 bool(int type, PayloadFrequencies frequency));
92 }; 91 };
93 } // namespace test 92 } // namespace test
94 } // namespace webrtc 93 } // namespace webrtc
95 94
96 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ 95 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698