Make scenario tests more tolerant on iOS.

Making these tests run shorter broke them on iOS. I think we can just
be more tolerant on iOS.

This also tried to re-enable the test on dbg; hopefully the increased
tolerance is enough.

Bug: None
Change-Id: Ic8c54dd46b0f5cb219b0c16da81c9486f6c45f10
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169440
Commit-Queue: Patrik Höglund <phoglund@webrtc.org>
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30660}
This commit is contained in:
Patrik Höglund 2020-03-02 14:45:21 +01:00 committed by Commit Bot
parent b03422a737
commit 7d3f602dbc

View File

@ -88,13 +88,7 @@ void SetupVideoCall(Scenario& s, VideoQualityAnalyzer* analyzer) {
}
} // namespace
// TODO(bugs.webrtc.org/10515): Remove this when performance has been improved.
#if defined(WEBRTC_IOS) && defined(WEBRTC_ARCH_ARM64) && !defined(NDEBUG)
#define MAYBE_SimTimeEncoding DISABLED_SimTimeEncoding
#else
#define MAYBE_SimTimeEncoding SimTimeEncoding
#endif
TEST(ScenarioTest, MAYBE_SimTimeEncoding) {
TEST(ScenarioTest, SimTimeEncoding) {
VideoQualityAnalyzerConfig analyzer_config;
analyzer_config.psnr_coverage = 0.1;
VideoQualityAnalyzer analyzer(analyzer_config);
@ -105,7 +99,7 @@ TEST(ScenarioTest, MAYBE_SimTimeEncoding) {
}
// Regression tests based on previous runs.
EXPECT_EQ(analyzer.stats().lost_count, 0);
EXPECT_NEAR(analyzer.stats().psnr_with_freeze.Mean(), 38, 3);
EXPECT_NEAR(analyzer.stats().psnr_with_freeze.Mean(), 38, 5);
}
// TODO(bugs.webrtc.org/10515): Remove this when performance has been improved.