Commit 5a2e04ec by ibaker Committed by Oliver Woodman

Migrate usages of deprecated SinglePeriodTimeline constructor

PiperOrigin-RevId: 321168965
parent 8eb2354e
......@@ -97,7 +97,7 @@ public final class SinglePeriodTimelineTest {
/* isDynamic= */ false,
/* isLive= */ false,
/* manifest= */ null,
/* tag= */ (Object) null);
new MediaItem.Builder().setUri(Uri.EMPTY).setTag(null).build());
assertThat(timeline.getWindow(/* windowIndex= */ 0, window).tag).isNull();
assertThat(timeline.getPeriod(/* periodIndex= */ 0, period, /* setIds= */ false).id).isNull();
......@@ -117,7 +117,7 @@ public final class SinglePeriodTimelineTest {
/* isDynamic= */ false,
/* isLive= */ false,
/* manifest= */ null,
tag);
new MediaItem.Builder().setUri(Uri.EMPTY).setTag(tag).build());
assertThat(timeline.getWindow(/* windowIndex= */ 0, window).tag).isEqualTo(tag);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment