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