OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 |
11 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_SEND_SIDE_CONGEST
ION_CONTROLLER_H_ | 11 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_SEND_SIDE_CONGEST
ION_CONTROLLER_H_ |
12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_SEND_SIDE_CONGEST
ION_CONTROLLER_H_ | 12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_SEND_SIDE_CONGEST
ION_CONTROLLER_H_ |
13 | 13 |
14 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont
roller.h" | 14 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont
roller.h" |
15 #include "webrtc/test/gmock.h" | 15 #include "webrtc/test/gmock.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 namespace test { | 18 namespace test { |
19 | 19 |
20 class MockSendSideCongestionController : public SendSideCongestionController { | 20 class MockSendSideCongestionController : public SendSideCongestionController { |
21 public: | 21 public: |
22 MockSendSideCongestionController(const Clock* clock, | 22 MockSendSideCongestionController(const Clock* clock, |
23 RtcEventLog* event_log, | 23 RtcEventLog* event_log, |
24 PacketRouter* packet_router) | 24 PacedSender* paced_sender) |
25 : SendSideCongestionController(clock, | 25 : SendSideCongestionController(clock, |
26 nullptr /* observer */, | 26 nullptr /* observer */, |
27 event_log, | 27 event_log, |
28 packet_router) {} | 28 paced_sender) {} |
29 | 29 |
30 MOCK_METHOD3(SetBweBitrates, | 30 MOCK_METHOD3(SetBweBitrates, |
31 void(int min_bitrate_bps, | 31 void(int min_bitrate_bps, |
32 int start_bitrate_bps, | 32 int start_bitrate_bps, |
33 int max_bitrate_bps)); | 33 int max_bitrate_bps)); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace test | 36 } // namespace test |
37 } // namespace webrtc | 37 } // namespace webrtc |
38 | 38 |
39 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_SEND_SIDE_CONG
ESTION_CONTROLLER_H_ | 39 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_SEND_SIDE_CONG
ESTION_CONTROLLER_H_ |
OLD | NEW |