mirror of
https://github.com/androidx/media.git
synced 2025-05-16 20:19:57 +08:00

DownloadRunner.getDownloader was creating Downloader instances before the actual DownloadManager under test would have created them. Tests were then asserting and manipulating these Downloader instances, which is quite confusing. In particular FakeDownloader.assertDoesNotStart() is an assertion on a Downloader instance that only makes sense when called on an instance that DownloadManager would not have created by itself. This change replaces FakeDownloader.assertDoesNotStart() with an assertion on DownloadRunner that no Downloader instance has been created. PiperOrigin-RevId: 308822398
ExoPlayer library
The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.