diff options
| author | 2023-10-04 14:39:05 -0700 | |
|---|---|---|
| committer | 2023-10-06 13:52:22 -0700 | |
| commit | 6976ba2d4f0dc62d239f2ed724bbf5803c89e40f (patch) | |
| tree | d2147902f515a6b47bf1b577f8f1dada2b0891b7 /libs/androidfw/ApkParsing.cpp | |
| parent | 98fe9a64fc4ea05bc117d61d5dd2685697d7b33f (diff) | |
Fix race condition for mocking in radio unit test
Fixed the race condition between receiving onCurrentProgramInfoChanged
callback and update mocking isCurrentOrSystemUser method called from
onCurrentProgramInfoChanged in cancel_forNonCurrentUser for both AIDL
and HIDL HAL broadcast radio service tuner session unit test, which
causes test flakiness. Also fixed the way for mockito checking for a
method never called within in a timeout period in unit test. Safer
doReturn and doThrow Mockito syntax are also used.
Bug: 302236983
Test: atest com.android.server.broadcastradio
Change-Id: I163b7e3b020aa6df33355a3fc4dff9af76976ff8
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions