Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-10 UTC.
[null,null,["Last updated 2025-07-10 UTC."],[],[],null,["# androidx.media3.test.utils.robolectric\n======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/media3/test/utils/robolectric/package-summary \"View this page in Kotlin\") \\|Java\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FakeDownloader](/reference/androidx/media3/test/utils/robolectric/FakeDownloader) | A fake [Downloader](/reference/androidx/media3/exoplayer/offline/Downloader). |\n| [IdlingMediaCodecAdapterFactory](/reference/androidx/media3/test/utils/robolectric/IdlingMediaCodecAdapterFactory) | A [MediaCodecAdapter.Factory](/reference/androidx/media3/exoplayer/mediacodec/MediaCodecAdapter.Factory) which can [idle](https://robolectric.org/javadoc/4.11/org/robolectric/shadows/ShadowLooper.html#idle--) all the async queueing and callback threads used in async MediaCodec mode. |\n| [PlaybackOutput](/reference/androidx/media3/test/utils/robolectric/PlaybackOutput) | Class to capture output from a playback test. |\n| [RandomizedMp3Decoder](/reference/androidx/media3/test/utils/robolectric/RandomizedMp3Decoder) | Generates randomized, but correct amount of data on MP3 audio input. |\n| [RobolectricUtil](/reference/androidx/media3/test/utils/robolectric/RobolectricUtil) | Utility methods for Robolectric-based tests. |\n| [ShadowMediaCodecConfig](/reference/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig) | A JUnit @Rule to configure Robolectric's [ShadowMediaCodec](https://robolectric.org/javadoc/4.11/org/robolectric/shadows/ShadowMediaCodec.html). |\n| [ShadowMediaCodecConfig.CodecInfo](/reference/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo) | Class that holds information about a [CodecImpl](/reference/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecImpl) configuration. |\n| [TestDownloadManagerListener](/reference/androidx/media3/test/utils/robolectric/TestDownloadManagerListener) | Allows tests to block for, and assert properties of, calls from a [DownloadManager](/reference/androidx/media3/exoplayer/offline/DownloadManager) to its [DownloadManager.Listener](/reference/androidx/media3/exoplayer/offline/DownloadManager.Listener). |\n| [TestPlayerRunHelper](/reference/androidx/media3/test/utils/robolectric/TestPlayerRunHelper) | Helper methods to block the calling thread until the provided [ExoPlayer](/reference/androidx/media3/exoplayer/ExoPlayer) instance reaches a particular state. |\n| [TestPlayerRunHelper.ExoPlayerRunResult](/reference/androidx/media3/test/utils/robolectric/TestPlayerRunHelper.ExoPlayerRunResult) | An [ExoPlayer](/reference/androidx/media3/exoplayer/ExoPlayer) specific subclass of [PlayerRunResult](/reference/androidx/media3/test/utils/robolectric/TestPlayerRunHelper.PlayerRunResult), giving access to conditions that only make sense for the [ExoPlayer](/reference/androidx/media3/exoplayer/ExoPlayer) interface. |\n| [TestPlayerRunHelper.PlayerRunResult](/reference/androidx/media3/test/utils/robolectric/TestPlayerRunHelper.PlayerRunResult) | Intermediate type that allows callers to run the main [Looper](https://developer.android.com/reference/android/os/Looper.html) until certain conditions are met. |"]]