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

Side by Side Diff: webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h

Issue 3009403002: Drop return value from RtpRtcp::IncomingRtcpPacket. (Closed)
Patch Set: Delete VoENetworkTest.ReceivedRTCPPacketWithJunkDataShouldFail. Created 3 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 24 matching lines...) Expand all
35 35
36 class MockRtpRtcp : public RtpRtcp { 36 class MockRtpRtcp : public RtpRtcp {
37 public: 37 public:
38 MOCK_METHOD1(RegisterDefaultModule, int32_t(RtpRtcp* module)); 38 MOCK_METHOD1(RegisterDefaultModule, int32_t(RtpRtcp* module));
39 MOCK_METHOD0(DeRegisterDefaultModule, int32_t()); 39 MOCK_METHOD0(DeRegisterDefaultModule, int32_t());
40 MOCK_METHOD0(DefaultModuleRegistered, bool()); 40 MOCK_METHOD0(DefaultModuleRegistered, bool());
41 MOCK_METHOD0(NumberChildModules, uint32_t()); 41 MOCK_METHOD0(NumberChildModules, uint32_t());
42 MOCK_METHOD1(RegisterSyncModule, int32_t(RtpRtcp* module)); 42 MOCK_METHOD1(RegisterSyncModule, int32_t(RtpRtcp* module));
43 MOCK_METHOD0(DeRegisterSyncModule, int32_t()); 43 MOCK_METHOD0(DeRegisterSyncModule, int32_t());
44 MOCK_METHOD2(IncomingRtcpPacket, 44 MOCK_METHOD2(IncomingRtcpPacket,
45 int32_t(const uint8_t* incoming_packet, size_t packet_length)); 45 void(const uint8_t* incoming_packet, size_t packet_length));
46 MOCK_METHOD1(SetRemoteSSRC, void(uint32_t ssrc)); 46 MOCK_METHOD1(SetRemoteSSRC, void(uint32_t ssrc));
47 MOCK_METHOD4(IncomingAudioNTP, 47 MOCK_METHOD4(IncomingAudioNTP,
48 int32_t(uint32_t audio_received_ntp_secs, 48 int32_t(uint32_t audio_received_ntp_secs,
49 uint32_t audio_received_ntp_frac, 49 uint32_t audio_received_ntp_frac,
50 uint32_t audio_rtcp_arrival_time_secs, 50 uint32_t audio_rtcp_arrival_time_secs,
51 uint32_t audio_rtcp_arrival_time_frac)); 51 uint32_t audio_rtcp_arrival_time_frac));
52 MOCK_METHOD0(InitSender, int32_t()); 52 MOCK_METHOD0(InitSender, int32_t());
53 MOCK_METHOD1(RegisterSendTransport, int32_t(Transport* outgoing_transport)); 53 MOCK_METHOD1(RegisterSendTransport, int32_t(Transport* outgoing_transport));
54 MOCK_METHOD1(SetMaxRtpPacketSize, void(size_t size)); 54 MOCK_METHOD1(SetMaxRtpPacketSize, void(size_t size));
55 MOCK_METHOD1(SetTransportOverhead, void(int transport_overhead_per_packet)); 55 MOCK_METHOD1(SetTransportOverhead, void(int transport_overhead_per_packet));
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 private: 203 private:
204 // Mocking this method is currently not required and having a default 204 // Mocking this method is currently not required and having a default
205 // implementation like MOCK_METHOD0(TimeUntilNextProcess, int64_t()) 205 // implementation like MOCK_METHOD0(TimeUntilNextProcess, int64_t())
206 // can be dangerous since it can cause a tight loop on a process thread. 206 // can be dangerous since it can cause a tight loop on a process thread.
207 virtual int64_t TimeUntilNextProcess() { return 0xffffffff; } 207 virtual int64_t TimeUntilNextProcess() { return 0xffffffff; }
208 }; 208 };
209 209
210 } // namespace webrtc 210 } // namespace webrtc
211 211
212 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ 212 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698