QualityScalingTest.AdaptsDownAndThenUpWithBalanced: fix for flaky test
Bug: webrtc:14922 Change-Id: Ide460e78f00fcf59c8a5da66b431592f10512d94 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/299461 Commit-Queue: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39745}
This commit is contained in:
parent
0587aaea1a
commit
e0727118f1
@ -155,6 +155,15 @@ class ScalingObserver : public test::SendTest {
|
||||
test_params_.size());
|
||||
}
|
||||
|
||||
Action OnSendRtp(const uint8_t* packet, size_t length) override {
|
||||
// The tests are expected to send at the configured start bitrate. Do not
|
||||
// send any packets to avoid receiving REMB and possibly go down in target
|
||||
// bitrate. A low bitrate estimate could result in downgrading due to other
|
||||
// reasons than low/high QP-value (e.g. high frame drop percent) or not
|
||||
// upgrading due to bitrate constraint.
|
||||
return DROP_PACKET;
|
||||
}
|
||||
|
||||
void PerformTest() override { EXPECT_EQ(expect_scaling_, Wait()); }
|
||||
|
||||
test::FunctionVideoEncoderFactory encoder_factory_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user