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 17 matching lines...) Expand all Loading... |
28 class MockBitrateController : public BitrateController { | 28 class MockBitrateController : public BitrateController { |
29 public: | 29 public: |
30 MOCK_METHOD0(CreateRtcpBandwidthObserver, RtcpBandwidthObserver*()); | 30 MOCK_METHOD0(CreateRtcpBandwidthObserver, RtcpBandwidthObserver*()); |
31 MOCK_METHOD1(SetStartBitrate, void(int start_bitrate_bps)); | 31 MOCK_METHOD1(SetStartBitrate, void(int start_bitrate_bps)); |
32 MOCK_METHOD2(SetMinMaxBitrate, | 32 MOCK_METHOD2(SetMinMaxBitrate, |
33 void(int min_bitrate_bps, int max_bitrate_bps)); | 33 void(int min_bitrate_bps, int max_bitrate_bps)); |
34 MOCK_METHOD3(SetBitrates, | 34 MOCK_METHOD3(SetBitrates, |
35 void(int start_bitrate_bps, | 35 void(int start_bitrate_bps, |
36 int min_bitrate_bps, | 36 int min_bitrate_bps, |
37 int max_bitrate_bps)); | 37 int max_bitrate_bps)); |
| 38 MOCK_METHOD3(ResetBitrates, |
| 39 void(int bitrate_bps, int min_bitrate_bps, int max_bitrate_bps)); |
38 MOCK_METHOD1(UpdateDelayBasedEstimate, void(uint32_t bitrate_bps)); | 40 MOCK_METHOD1(UpdateDelayBasedEstimate, void(uint32_t bitrate_bps)); |
39 MOCK_METHOD1(SetEventLog, void(RtcEventLog* event_log)); | 41 MOCK_METHOD1(SetEventLog, void(RtcEventLog* event_log)); |
40 MOCK_CONST_METHOD1(AvailableBandwidth, bool(uint32_t* bandwidth)); | 42 MOCK_CONST_METHOD1(AvailableBandwidth, bool(uint32_t* bandwidth)); |
41 MOCK_METHOD1(SetReservedBitrate, void(uint32_t reserved_bitrate_bps)); | 43 MOCK_METHOD1(SetReservedBitrate, void(uint32_t reserved_bitrate_bps)); |
42 MOCK_METHOD3(GetNetworkParameters, | 44 MOCK_METHOD3(GetNetworkParameters, |
43 bool(uint32_t* bitrate, uint8_t* fraction_loss, int64_t* rtt)); | 45 bool(uint32_t* bitrate, uint8_t* fraction_loss, int64_t* rtt)); |
44 | 46 |
45 MOCK_METHOD0(Process, void()); | 47 MOCK_METHOD0(Process, void()); |
46 MOCK_METHOD0(TimeUntilNextProcess, int64_t()); | 48 MOCK_METHOD0(TimeUntilNextProcess, int64_t()); |
47 }; | 49 }; |
48 } // namespace test | 50 } // namespace test |
49 } // namespace webrtc | 51 } // namespace webrtc |
50 | 52 |
51 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLE
R_H_ | 53 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLE
R_H_ |
OLD | NEW |