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

Currently the ExoPlayerWrapper is used to run tests using an ExoPlayer implementation. Some properties of the test are set in the constructor, some are set by overloading the class, others are hard-coded in the ExoPlayerWrapper class, and a mechanism similar to the existing ActionSchedule is missing. This change does the following: 1. Renames ExoPlayerWrapper to ExoPlayerTestRunner as it better reflects its purpose. 2. Adds an internal Builder to easily set-up the test in a coherent way. This allows to only set necessary test components while using defaults for the rest. 3. Integrate ActionSchedule. 4. Apply the new structure to the existing tests currently using ExoPlayerWrapper. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=163186578