mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-05 11:21:09 +03:00
refactor setStreamPriority to accept Priority struct
Summary: ## Context Context: see summary for D43854603. ## In this diff In this diff, make way for easily adding new elements to Priority struct. Reviewed By: afrind Differential Revision: D43882907 fbshipit-source-id: f74f6ec41162a970dcd666bfa5192676f968d740
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a1a5617ac4
commit
e56d4bd7f6
@@ -4217,7 +4217,7 @@ TEST_P(QuicTransportImplTestBase, BackgroundModeChangeWithStreamChanges) {
|
||||
EXPECT_CALL(*rawCongestionController, setBandwidthUtilizationFactor(_))
|
||||
.Times(0); // Backgound params not set
|
||||
auto stream = manager.createNextUnidirectionalStream().value();
|
||||
manager.setStreamPriority(stream->id, 1, false);
|
||||
manager.setStreamPriority(stream->id, Priority(1, false));
|
||||
|
||||
EXPECT_CALL(*rawCongestionController, setBandwidthUtilizationFactor(0.5))
|
||||
.Times(1); // On setting the background params
|
||||
@@ -4236,7 +4236,7 @@ TEST_P(QuicTransportImplTestBase, BackgroundModeChangeWithStreamChanges) {
|
||||
|
||||
EXPECT_CALL(*rawCongestionController, setBandwidthUtilizationFactor(1.0))
|
||||
.Times(1); // On increasing the priority of one of the streams
|
||||
manager.setStreamPriority(stream3id, 0, false);
|
||||
manager.setStreamPriority(stream3id, Priority(0, false));
|
||||
|
||||
EXPECT_CALL(*rawCongestionController, setBandwidthUtilizationFactor(1.0))
|
||||
.Times(1); // a new lower priority stream does not affect the utlization
|
||||
|
Reference in New Issue
Block a user