android_packages_modules_Co.../staticlibs/testutils/hostdevice/com/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chalard Jean a14fb7cf79 Add a way to poll with a position for ReadHead
It was thought originally that it would not make a lot of sense to
offer such a call, but with usage it became clear that there is a
simple, obvious and useful behavior.
In particular this is very useful to mix eventuallyExpect and
expect calls. Interestingly, before this patch, calling
callback.eventuallyExpect<...>()
callback.expect<...>()
does not actually behave like you would intuitively think, because
eventuallyExpect does not advance the read head. When this
utility was made we thought this was the better behavior, but
usage has shown that advancing is both obvious and more useful.

Astonishingly, there seem to be no caller who needs to
eventuallyExpect() and later expect(), meaning that this
behavior change is apparently fine.

Test: ConnectivityCoverageTest and treehugger
Flag: EXEMPT test-only change
Change-Id: I2078330bd913cf0f75240bf3d4852e487e3e0163
2025-04-27 15:54:33 +09:00
..
net/module/util Add a way to poll with a position for ReadHead 2025-04-27 15:54:33 +09:00
testutils Merge "Only report tryTest errors when not caught" into main 2024-12-02 01:48:40 +00:00