mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Serializing bitmap cues is currently broken, but this test is incorrectly passing. This change makes two changes to introduce the same failure (both changes are necessary, each one alone still passes): 1. Move from Robolectric to an instrumentation test. 2. Trigger the `Bitmap` to be serialized using a file descriptor, either by calling `Bitmap.asShared` in the test when constructing the `Cue`, or constructing the `Bitmap` from a 'real' image byte array instead a 1x1 token image. Issue: androidx/media#836 PiperOrigin-RevId: 585643486