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 |
(...skipping 14 matching lines...) Expand all Loading... |
25 void(uint32_t bitrate_bps, | 25 void(uint32_t bitrate_bps, |
26 uint8_t fraction_loss, | 26 uint8_t fraction_loss, |
27 int64_t rtt_ms)); | 27 int64_t rtt_ms)); |
28 }; | 28 }; |
29 | 29 |
30 class MockCongestionController : public CongestionController { | 30 class MockCongestionController : public CongestionController { |
31 public: | 31 public: |
32 MockCongestionController(Clock* clock, | 32 MockCongestionController(Clock* clock, |
33 Observer* observer, | 33 Observer* observer, |
34 RemoteBitrateObserver* remote_bitrate_observer, | 34 RemoteBitrateObserver* remote_bitrate_observer, |
35 RtcEventLog* event_log) | 35 RtcEventLog* event_log, |
| 36 PacketRouter* packet_router) |
36 : CongestionController(clock, | 37 : CongestionController(clock, |
37 observer, | 38 observer, |
38 remote_bitrate_observer, | 39 remote_bitrate_observer, |
39 event_log) {} | 40 event_log, |
| 41 packet_router) {} |
40 MOCK_METHOD3(SetBweBitrates, | 42 MOCK_METHOD3(SetBweBitrates, |
41 void(int min_bitrate_bps, | 43 void(int min_bitrate_bps, |
42 int start_bitrate_bps, | 44 int start_bitrate_bps, |
43 int max_bitrate_bps)); | 45 int max_bitrate_bps)); |
44 MOCK_METHOD1(SignalNetworkState, void(NetworkState state)); | 46 MOCK_METHOD1(SignalNetworkState, void(NetworkState state)); |
45 MOCK_CONST_METHOD0(GetBitrateController, BitrateController*()); | 47 MOCK_CONST_METHOD0(GetBitrateController, BitrateController*()); |
46 MOCK_METHOD1(GetRemoteBitrateEstimator, | 48 MOCK_METHOD1(GetRemoteBitrateEstimator, |
47 RemoteBitrateEstimator*(bool send_side_bwe)); | 49 RemoteBitrateEstimator*(bool send_side_bwe)); |
48 MOCK_CONST_METHOD0(GetPacerQueuingDelayMs, int64_t()); | 50 MOCK_CONST_METHOD0(GetPacerQueuingDelayMs, int64_t()); |
49 MOCK_METHOD0(pacer, PacedSender*()); | 51 MOCK_METHOD0(pacer, PacedSender*()); |
50 MOCK_METHOD0(packet_router, PacketRouter*()); | |
51 MOCK_METHOD0(GetTransportFeedbackObserver, TransportFeedbackObserver*()); | 52 MOCK_METHOD0(GetTransportFeedbackObserver, TransportFeedbackObserver*()); |
52 MOCK_METHOD3(UpdatePacerBitrate, | 53 MOCK_METHOD3(UpdatePacerBitrate, |
53 void(int bitrate_kbps, | 54 void(int bitrate_kbps, |
54 int max_bitrate_kbps, | 55 int max_bitrate_kbps, |
55 int min_bitrate_kbps)); | 56 int min_bitrate_kbps)); |
56 MOCK_METHOD1(OnSentPacket, void(const rtc::SentPacket& sent_packet)); | 57 MOCK_METHOD1(OnSentPacket, void(const rtc::SentPacket& sent_packet)); |
57 | 58 |
58 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MockCongestionController); | 59 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MockCongestionController); |
59 }; | 60 }; |
60 } // namespace test | 61 } // namespace test |
61 } // namespace webrtc | 62 } // namespace webrtc |
62 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_CONGESTION_CON
TROLLER_H_ | 63 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_CONGESTION_CON
TROLLER_H_ |
OLD | NEW |