diff options
| author | 2019-03-16 21:05:23 -0700 | |
|---|---|---|
| committer | 2019-03-19 10:40:35 -0700 | |
| commit | a2957eab57a603db03079a6345cc940f136cbeb6 (patch) | |
| tree | 65ebfc2e3705bab595e152e1723ee45a0bebe3ef /libs/gui/BufferQueue.cpp | |
| parent | 5e1371af16bab6714fd11dfdbfe1b573a6e8d088 (diff) | |
Fix flaky RefreshRateStatsTests
* Replace ASSERT_* with EXPECT_* so that tests no longer fail fast when
an expectation is not met.
* Remove initial assertion for screen off times, as metrics can tick
before the initial stats flush.
* Store relevant prior metrics for assertions after config/power mode
changes.
Bug: 124318277
Test: atest libsurfaceflinger_unittest --serial 92JBA03174 --
--module-arg
libsurfaceflinger_unittest:native-test-flag:--gtest_repeat=10000
--module-arg
libsurfaceflinger_unittest:native-test-flag:--gtest_filter=RefreshRateStatsTest*
Change-Id: I4670b5f86667977484d55980252ae765b5108efe
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions