
The test had two problems: 1. It posts messages using a Handler and we need to idle the main looper to actually deliver this message. 2. SimpleDecoder uses a background thread that is not within our control from the test. Ensure the decoding happens after we queue input buffers by using a lock. PiperOrigin-RevId: 298300175