| Modifier and Type | Method | Description |
|---|---|---|
static void |
assertAdGroupCounts(Timeline timeline,
int... expectedAdGroupCounts) |
Asserts that periods'
Timeline.Period.getAdGroupCount() are set correctly. |
static void |
assertEmpty(Timeline timeline) |
Assert that timeline is empty (i.e.
|
static void |
assertNextWindowIndices(Timeline timeline,
int repeatMode,
boolean shuffleModeEnabled,
int... expectedNextWindowIndices) |
Asserts that next window indices for each window depending on the repeat mode and the shuffle
mode are equal to the given sequence.
|
static void |
assertPeriodCounts(Timeline timeline,
int... expectedPeriodCounts) |
Asserts that period counts for each window are set correctly.
|
static void |
assertPeriodDurations(Timeline timeline,
long... durationsUs) |
Asserts that the durations of the periods in the
Timeline and the durations in the
given sequence are equal. |
static void |
assertPreviousWindowIndices(Timeline timeline,
int repeatMode,
boolean shuffleModeEnabled,
int... expectedPreviousWindowIndices) |
Asserts that previous window indices for each window depending on the repeat mode and the
shuffle mode are equal to the given sequence.
|
static void |
assertWindowIsDynamic(Timeline timeline,
boolean... windowIsDynamic) |
Asserts that window properties
Timeline.Window.isDynamic are set correctly. |
static void |
assertWindowTags(Timeline timeline,
@NullableType Object... expectedWindowTags) |
Asserts that window tags are set correctly.
|
public static void assertEmpty(Timeline timeline)
public static void assertWindowTags(Timeline timeline, @NullableType Object... expectedWindowTags)
expectedWindowTags - A list of expected window tags. If a tag is unknown or not important
null can be passed to skip this window.public static void assertWindowIsDynamic(Timeline timeline, boolean... windowIsDynamic)
Timeline.Window.isDynamic are set correctly.public static void assertPreviousWindowIndices(Timeline timeline, @RepeatMode int repeatMode, boolean shuffleModeEnabled, int... expectedPreviousWindowIndices)
public static void assertNextWindowIndices(Timeline timeline, @RepeatMode int repeatMode, boolean shuffleModeEnabled, int... expectedNextWindowIndices)
public static void assertPeriodDurations(Timeline timeline, long... durationsUs)
Timeline and the durations in the
given sequence are equal.public static void assertPeriodCounts(Timeline timeline, int... expectedPeriodCounts)
Timeline.Window.firstPeriodIndex and Timeline.Window.lastPeriodIndex are set correctly, and it asserts
the correct behavior of Timeline.getNextWindowIndex(int, int, boolean).public static void assertAdGroupCounts(Timeline timeline, int... expectedAdGroupCounts)
Timeline.Period.getAdGroupCount() are set correctly.