diff --git a/common/test/test_throttle.cpp b/common/test/test_throttle.cpp index 18ebe18d..e8ac8166 100644 --- a/common/test/test_throttle.cpp +++ b/common/test/test_throttle.cpp @@ -325,6 +325,33 @@ INSTANTIATE_TEST_P(Throttle, ThrottlePriorityTest, testing::Values( {100'000'000, 4'000'000, photon::throttle::Priority::Low}, 0.4, 0.6, 0.4, 0.6, + }, + PriorityTestSuite{ + // 8. Real socket. Low priority gets the rest BW that high priority doesn't need + PriorityTestSuite::RealSocket, + 10'000'000, + {5'000'000, 10'000, photon::throttle::Priority::High}, + {300'000'000, 8'000'000, photon::throttle::Priority::Low}, + 0.1, 0.9, + 0.1, 0.9, + }, + PriorityTestSuite{ + // 9. Real socket. Low priority gets the rest BW that high priority doesn't need + PriorityTestSuite::RealSocket, + 10'000'000, + {5'000'000, 10'000, photon::throttle::Priority::High}, + {5'000'000, 32'000, photon::throttle::Priority::Low}, + 0.1, 0.9, + 0.1, 0.9, + }, + PriorityTestSuite{ + // 10. Real socket. Low priority gets the rest BW that high priority doesn't need + PriorityTestSuite::RealSocket, + 500'000'000, + {400'000'000, 10'000, photon::throttle::Priority::High}, + {400'000'000, 32'000, photon::throttle::Priority::Low}, + 0.1, 0.9, + 0.1, 0.9, } ));