Simplify LoopingMediaSourceTest setup
This test seems to obtain a timeline from a prepared FakeMediaSource, but that's identical to the timeline passed into that source to start with :). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=176117133
This commit is contained in:
parent
00f68b26c9
commit
8455d10366
@ -30,12 +30,13 @@ import junit.framework.TestCase;
|
|||||||
*/
|
*/
|
||||||
public class LoopingMediaSourceTest extends TestCase {
|
public class LoopingMediaSourceTest extends TestCase {
|
||||||
|
|
||||||
private final Timeline multiWindowTimeline;
|
private FakeTimeline multiWindowTimeline;
|
||||||
|
|
||||||
public LoopingMediaSourceTest() {
|
@Override
|
||||||
multiWindowTimeline = TestUtil.extractTimelineFromMediaSource(new FakeMediaSource(
|
public void setUp() throws Exception {
|
||||||
new FakeTimeline(new TimelineWindowDefinition(1, 111),
|
super.setUp();
|
||||||
new TimelineWindowDefinition(1, 222), new TimelineWindowDefinition(1, 333)), null));
|
multiWindowTimeline = new FakeTimeline(new TimelineWindowDefinition(1, 111),
|
||||||
|
new TimelineWindowDefinition(1, 222), new TimelineWindowDefinition(1, 333));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testSingleLoop() {
|
public void testSingleLoop() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user