CallPerfTest: Add encode framerate test with lower input fps.

Verify if framerate expectation on top layer can be enabled.

Bug: webrtc:13031
Change-Id: Ib720b808ce7b0cf8ad932d9d5307322b04a4b066
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/231126
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Åsa Persson <asapersson@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#34907}
This commit is contained in:
Åsa Persson
2021-09-02 13:19:05 +02:00
committed by WebRTC LUCI CQ
parent cf24573afa
commit d3bf4d4142

View File

@ -1187,4 +1187,16 @@ TEST_F(CallPerfTest, TestEncodeFramerateVp8Simulcast) {
/*max_framerates=*/{20, 30});
}
TEST_F(CallPerfTest, TestEncodeFramerateVp8SimulcastLowerInputFps) {
InternalEncoderFactory internal_encoder_factory;
test::FunctionVideoEncoderFactory encoder_factory(
[&internal_encoder_factory]() {
return std::make_unique<SimulcastEncoderAdapter>(
&internal_encoder_factory, SdpVideoFormat("VP8"));
});
TestEncodeFramerate(&encoder_factory, "VP8",
/*max_framerates=*/{14, 20});
}
} // namespace webrtc