commit | bca0d292bcc5e3a3232404c7c7b0a7e387d116da | [log] [tgz] |
---|---|---|
author | Hao Liu <haoliuu@google.com> | Tue Oct 24 00:50:05 2023 +0000 |
committer | Hao Liu <haoliuu@google.com> | Thu Oct 26 14:18:07 2023 +0000 |
tree | a3e51e429ee998f190913abf19b741327f8f6604 | |
parent | a6c646689071e35ad666d2dfed44ab438f66aa84 [diff] |
Fix flaky tests in MddJobServiceTest. - Put tests that calling scheduleIfNeeded() to a background - Apply JobServiceCallback to check onStart or onStop executed. - Apply ProcessLifeguardRule to prevent test crash on a background thread. - Move JobServiceCallback to common test-util. Test: atest -c com.android.adservices.download.MddJobServiceTest com.android.adservices.cobalt.CobaltJobServiceTest Bug: 306676682 Bug: 302757068 Change-Id: I241338a4e369e52aa4c8b46e5e732a571eb12f4c