From 3a84b787b19868b3a45fc16db992772b9ef0891a Mon Sep 17 00:00:00 2001 From: ibaker Date: Thu, 24 Oct 2019 10:46:33 +0100 Subject: [PATCH] Add missing IntDef annotations in WebvttDecoderTest Also change the type of endTime to long to match startTime PiperOrigin-RevId: 276448131 --- .../exoplayer2/text/webvtt/WebvttDecoderTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/WebvttDecoderTest.java b/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/WebvttDecoderTest.java index 05020ccd90..49e30d8be0 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/WebvttDecoderTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/WebvttDecoderTest.java @@ -405,7 +405,7 @@ public class WebvttDecoderTest { } 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( subtitle, eventTimeIndex, @@ -425,14 +425,14 @@ public class WebvttDecoderTest { WebvttSubtitle subtitle, int eventTimeIndex, long startTimeUs, - int endTimeUs, + long endTimeUs, String text, @Nullable Alignment textAlignment, float line, - int lineType, - int lineAnchor, + @Cue.LineType int lineType, + @Cue.AnchorType int lineAnchor, float position, - int positionAnchor, + @Cue.AnchorType int positionAnchor, float size) { assertWithMessage("startTimeUs") .that(subtitle.getEventTime(eventTimeIndex))