straw/strawApp
Cobb dfed10b15a test: follow Media3's foreground answer through the compiled override
The wiring checks moved from source text to the compiled service in
c62f19548, and they see calls but not values. That let three rewrites of
the onUpdateNotification override pass that the earlier text checks
caught: passing true instead of Media3's answer, and computing
foregroundRequired but handing Media3 the original answer (which would
bring back the background stop this branch fixes).

The test now also reads the override's instructions: Media3's answer is
loaded once, goes straight into AutoplayHandoff.foregroundRequired, and
what MediaSessionService.onUpdateNotification receives is that result
(directly or through a local), not a constant.

Measured in review on 2cac33588 plus this change: testDebugUnitTest 66/66;
the harmless rewrites (a local val, autoplay.let { }) still pass; the
rewrites above now fail. Still not covered: the release callback's value
and an extra condition on onDestroy's cancel.
2026-10-22 20:18:51 -07:00
..
src test: follow Media3's foreground answer through the compiled override 2026-10-22 20:18:51 -07:00
build.gradle.kts test: run the service's autoplay decisions in JVM tests, not text matches 2026-10-22 18:45:47 -07:00
proguard-rules.pro vc=59 cont: wire bg subs refresh + R8 keep + Settings UI 2026-05-26 11:38:04 -07:00