
The cache, being static, is updated every time a new MimeType is encountered. The static cache needs to be cleared between tests that register codecs through ShadowMediaCodec, or the subsequent tests could possibly pick up a wrong codec. PiperOrigin-RevId: 351576018