OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |