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

Unified Diff: webrtc/call/mock/mock_congestion_controller.h

Issue 1663413003: Clean up of CongestionController. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/call/mock/mock_congestion_controller.h
diff --git a/webrtc/call/mock/mock_congestion_controller.h b/webrtc/call/mock/mock_congestion_controller.h
index 54014da339a84cb332bbde473f2d59c3a426f5e1..1eb7e93017cdf449f2013e60e6770e7e7f39cb0b 100644
--- a/webrtc/call/mock/mock_congestion_controller.h
+++ b/webrtc/call/mock/mock_congestion_controller.h
@@ -12,6 +12,7 @@
#define WEBRTC_CALL_MOCK_MOCK_CONGESTION_CONTROLLER_H_
#include "testing/gmock/include/gmock/gmock.h"
+#include "webrtc/base/socket.h"
#include "webrtc/call/congestion_controller.h"
namespace webrtc {
@@ -19,18 +20,20 @@ namespace test {
class MockCongestionController : public CongestionController {
public:
- MockCongestionController(ProcessThread* process_thread,
+ MockCongestionController(Clock* clock,
+ ProcessThread* process_thread,
CallStats* call_stats,
- BitrateObserver* bitrate_observer)
- : CongestionController(process_thread, call_stats, bitrate_observer) {}
- MOCK_METHOD1(AddEncoder, void(ViEEncoder* encoder));
- MOCK_METHOD1(RemoveEncoder, void(ViEEncoder* encoder));
+ BitrateObserver* bitrate_observer,
+ RemoteBitrateObserver* remote_bitrate_observer)
+ : CongestionController(clock,
+ process_thread,
+ call_stats,
+ bitrate_observer,
+ remote_bitrate_observer) {}
MOCK_METHOD3(SetBweBitrates,
void(int min_bitrate_bps,
int start_bitrate_bps,
int max_bitrate_bps));
- MOCK_METHOD3(SetChannelRembStatus,
- void(bool sender, bool receiver, RtpRtcp* rtp_module));
MOCK_METHOD1(SignalNetworkState, void(NetworkState state));
MOCK_CONST_METHOD0(GetBitrateController, BitrateController*());
MOCK_CONST_METHOD1(GetRemoteBitrateEstimator,

Powered by Google App Engine
This is Rietveld 408576698