diff options
| author | 2024-12-05 15:28:19 -0500 | |
|---|---|---|
| committer | 2024-12-12 09:44:13 -0500 | |
| commit | b11cb49243c99877dab5836eb16e9a9cfce4981d (patch) | |
| tree | 6ac4a515967b07bd05a8b7a51387a664650bd8eb /libs/androidfw/StringPool.cpp | |
| parent | 283ce2504567f6a26cbb11730c3b25dcce974c5d (diff) | |
SceneFrameworkIntegrationTest does not need runCurrent
This does not switch to UnconfinedDispatcher. Instead, it uses
several idioms to guarantee that runCurrent is called at the right
times:
- currentValue(StateFlow): this is already introduced, but now
used consistently
- verifyCurrent(mock) for advancing tasks before verifying a mock
- currentValue { block } for clearly scoping other value retrievals
that require advancement
Note: this accomplishes similar goals to ag/30532049, but with
fewer novel/bold/clever/intrusive patterns.
See go/thetiger for context
Bug: 342622417
Test: SceneFrameworkIntegrationTest
Flag: TEST_ONLY
Change-Id: Ideda9a26eb604ddf5d329ce45f5ebae0e011b3d9
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions