mirror of
https://github.com/androidx/media.git
synced 2025-05-08 08:00:49 +08:00
Add missing IntDef annotations in WebvttDecoderTest
Also change the type of endTime to long to match startTime PiperOrigin-RevId: 276448131
This commit is contained in:
parent
881fcf829a
commit
3a84b787b1
@ -405,7 +405,7 @@ public class WebvttDecoderTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void assertCue(
|
private static void assertCue(
|
||||||
WebvttSubtitle subtitle, int eventTimeIndex, long startTimeUs, int endTimeUs, String text) {
|
WebvttSubtitle subtitle, int eventTimeIndex, long startTimeUs, long endTimeUs, String text) {
|
||||||
assertCue(
|
assertCue(
|
||||||
subtitle,
|
subtitle,
|
||||||
eventTimeIndex,
|
eventTimeIndex,
|
||||||
@ -425,14 +425,14 @@ public class WebvttDecoderTest {
|
|||||||
WebvttSubtitle subtitle,
|
WebvttSubtitle subtitle,
|
||||||
int eventTimeIndex,
|
int eventTimeIndex,
|
||||||
long startTimeUs,
|
long startTimeUs,
|
||||||
int endTimeUs,
|
long endTimeUs,
|
||||||
String text,
|
String text,
|
||||||
@Nullable Alignment textAlignment,
|
@Nullable Alignment textAlignment,
|
||||||
float line,
|
float line,
|
||||||
int lineType,
|
@Cue.LineType int lineType,
|
||||||
int lineAnchor,
|
@Cue.AnchorType int lineAnchor,
|
||||||
float position,
|
float position,
|
||||||
int positionAnchor,
|
@Cue.AnchorType int positionAnchor,
|
||||||
float size) {
|
float size) {
|
||||||
assertWithMessage("startTimeUs")
|
assertWithMessage("startTimeUs")
|
||||||
.that(subtitle.getEventTime(eventTimeIndex))
|
.that(subtitle.getEventTime(eventTimeIndex))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user