Package-level declarations
This TomTom-internal package contains tooling for unit and instrumented tests of media domain components.
Types
Link copied to clipboard
Provides a fake MediaControlContext, and MutableLiveDatas to adjust its contents for a test.
Link copied to clipboard
Provides a fake SourceInfo, and MutableLiveDatas to adjust its contents for a test.
Functions
Link copied to clipboard
fun createMediaConfiguration(sourceToPolicyProviderMap: Map<SourceId, PolicyProvider> = emptyMap(), fallbackPolicyProvider: PolicyProvider = PolicyProvider()): MediaConfiguration
Provides a convenient way to create a customized MediaConfiguration with custom source policies for test purposes.
Link copied to clipboard
fun createMediaItem(id: String? = null, mediaUri: String? = null, title: String? = null, subtitle: String? = null, groupTitleHint: String? = null, album: String? = null, artist: String? = null, compilation: String? = null, artUri: String? = null, iconArtUri: String? = null, duration: Duration? = null, browsable: Boolean = false, playable: Boolean = false): IviMediaItem
Create an IviMediaItem for testing use.