Class DefaultRenderersFactoryAsserts
- java.lang.Object
-
- com.google.android.exoplayer2.testutil.DefaultRenderersFactoryAsserts
-
public final class DefaultRenderersFactoryAsserts extends Object
Assertions forDefaultRenderersFactory
.
-
-
Constructor Summary
Constructors Constructor Description DefaultRenderersFactoryAsserts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertExtensionRendererCreated(Class<? extends Renderer> clazz, @com.google.android.exoplayer2.C.TrackType int type)
Asserts that an extension renderer of typeclazz
is not instantiated forDefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF
, and that it's instantiated in the correct position relative to other renderers of the same type forDefaultRenderersFactory.EXTENSION_RENDERER_MODE_ON
andDefaultRenderersFactory.EXTENSION_RENDERER_MODE_PREFER
, assuming no other extension renderers can be loaded.
-
-
-
Method Detail
-
assertExtensionRendererCreated
public static void assertExtensionRendererCreated(Class<? extends Renderer> clazz, @com.google.android.exoplayer2.C.TrackType int type)
Asserts that an extension renderer of typeclazz
is not instantiated forDefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF
, and that it's instantiated in the correct position relative to other renderers of the same type forDefaultRenderersFactory.EXTENSION_RENDERER_MODE_ON
andDefaultRenderersFactory.EXTENSION_RENDERER_MODE_PREFER
, assuming no other extension renderers can be loaded.- Parameters:
clazz
- The extension renderer class.type
- The type of the renderer.
-
-