Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(974)

Side by Side Diff: webrtc/modules/congestion_controller/include/mock/mock_congestion_controller.h

Issue 2111813002: Revert of Move RtcEventLog object from inside VoiceEngine to Call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 RtcEventLog* event_log) 35 : CongestionController(clock, observer, remote_bitrate_observer) {}
36 : CongestionController(clock,
37 observer,
38 remote_bitrate_observer,
39 event_log) {}
40 MOCK_METHOD3(SetBweBitrates, 36 MOCK_METHOD3(SetBweBitrates,
41 void(int min_bitrate_bps, 37 void(int min_bitrate_bps,
42 int start_bitrate_bps, 38 int start_bitrate_bps,
43 int max_bitrate_bps)); 39 int max_bitrate_bps));
44 MOCK_METHOD1(SignalNetworkState, void(NetworkState state)); 40 MOCK_METHOD1(SignalNetworkState, void(NetworkState state));
45 MOCK_CONST_METHOD0(GetBitrateController, BitrateController*()); 41 MOCK_CONST_METHOD0(GetBitrateController, BitrateController*());
46 MOCK_METHOD1(GetRemoteBitrateEstimator, 42 MOCK_METHOD1(GetRemoteBitrateEstimator,
47 RemoteBitrateEstimator*(bool send_side_bwe)); 43 RemoteBitrateEstimator*(bool send_side_bwe));
48 MOCK_CONST_METHOD0(GetPacerQueuingDelayMs, int64_t()); 44 MOCK_CONST_METHOD0(GetPacerQueuingDelayMs, int64_t());
49 MOCK_METHOD0(pacer, PacedSender*()); 45 MOCK_METHOD0(pacer, PacedSender*());
50 MOCK_METHOD0(packet_router, PacketRouter*()); 46 MOCK_METHOD0(packet_router, PacketRouter*());
51 MOCK_METHOD0(GetTransportFeedbackObserver, TransportFeedbackObserver*()); 47 MOCK_METHOD0(GetTransportFeedbackObserver, TransportFeedbackObserver*());
52 MOCK_METHOD3(UpdatePacerBitrate, 48 MOCK_METHOD3(UpdatePacerBitrate,
53 void(int bitrate_kbps, 49 void(int bitrate_kbps,
54 int max_bitrate_kbps, 50 int max_bitrate_kbps,
55 int min_bitrate_kbps)); 51 int min_bitrate_kbps));
56 MOCK_METHOD1(OnSentPacket, void(const rtc::SentPacket& sent_packet)); 52 MOCK_METHOD1(OnSentPacket, void(const rtc::SentPacket& sent_packet));
57 53
58 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MockCongestionController); 54 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MockCongestionController);
59 }; 55 };
60 } // namespace test 56 } // namespace test
61 } // namespace webrtc 57 } // namespace webrtc
62 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_CONGESTION_CON TROLLER_H_ 58 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_MOCK_MOCK_CONGESTION_CON TROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/include/congestion_controller.h ('k') | webrtc/modules/remote_bitrate_estimator/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698