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

Unified Diff: webrtc/modules/congestion_controller/include/mock/mock_congestion_controller.h

Issue 1917793002: Remove SendPacer from ViEEncoder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed code review comments. Created 4 years, 8 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/modules/congestion_controller/include/mock/mock_congestion_controller.h
diff --git a/webrtc/modules/congestion_controller/include/mock/mock_congestion_controller.h b/webrtc/modules/congestion_controller/include/mock/mock_congestion_controller.h
index c5b24128455f9523c68e9922e6fe94950982bf76..798d4902259d62de5e69e097fd3c9c5d790544c3 100644
--- a/webrtc/modules/congestion_controller/include/mock/mock_congestion_controller.h
+++ b/webrtc/modules/congestion_controller/include/mock/mock_congestion_controller.h
@@ -19,14 +19,20 @@
namespace webrtc {
namespace test {
+class MockCongestionObserver : public CongestionObserver {
+ public:
+ MOCK_METHOD3(OnNetworkChanged,
+ void(uint32_t bitrate_bps,
+ uint8_t fraction_loss,
+ int64_t rtt_ms));
+};
+
class MockCongestionController : public CongestionController {
public:
MockCongestionController(Clock* clock,
- BitrateObserver* bitrate_observer,
+ CongestionObserver* observer,
RemoteBitrateObserver* remote_bitrate_observer)
- : CongestionController(clock,
- bitrate_observer,
- remote_bitrate_observer) {}
+ : CongestionController(clock, observer, remote_bitrate_observer) {}
MOCK_METHOD3(SetBweBitrates,
void(int min_bitrate_bps,
int start_bitrate_bps,

Powered by Google App Engine
This is Rietveld 408576698