Commit 8909f201 by ibaker Committed by Christos Tsilopoulos

Fix incorrect DataSourceContractTest test names

These should have been updated as part of
https://github.com/google/ExoPlayer/commit/1affbf9357c061149b3cb287972ea0157d1b6735

#minor-release

PiperOrigin-RevId: 392913561
parent 152d1c7d
...@@ -91,12 +91,12 @@ public class UdpDataSourceContractTest extends DataSourceContractTest { ...@@ -91,12 +91,12 @@ public class UdpDataSourceContractTest extends DataSourceContractTest {
@Test @Test
@Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]")
@Override @Override
public void dataSpecWithPositionAtEnd_throwsPositionOutOfRangeException() {} public void dataSpecWithPositionAtEnd_readsZeroBytes() {}
@Test @Test
@Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]")
@Override @Override
public void dataSpecWithPositionAtEndAndLength_throwsPositionOutOfRangeException() {} public void dataSpecWithPositionAtEndAndLength_readsZeroBytes() {}
@Test @Test
@Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]")
......
...@@ -218,7 +218,7 @@ public abstract class DataSourceContractTest { ...@@ -218,7 +218,7 @@ public abstract class DataSourceContractTest {
} }
@Test @Test
public void dataSpecWithPositionAtEnd_throwsPositionOutOfRangeException() throws Exception { public void dataSpecWithPositionAtEnd_readsZeroBytes() throws Exception {
ImmutableList<TestResource> resources = getTestResources(); ImmutableList<TestResource> resources = getTestResources();
Assertions.checkArgument(!resources.isEmpty(), "Must provide at least one test resource."); Assertions.checkArgument(!resources.isEmpty(), "Must provide at least one test resource.");
...@@ -249,8 +249,7 @@ public abstract class DataSourceContractTest { ...@@ -249,8 +249,7 @@ public abstract class DataSourceContractTest {
} }
@Test @Test
public void dataSpecWithPositionAtEndAndLength_throwsPositionOutOfRangeException() public void dataSpecWithPositionAtEndAndLength_readsZeroBytes() throws Exception {
throws Exception {
ImmutableList<TestResource> resources = getTestResources(); ImmutableList<TestResource> resources = getTestResources();
Assertions.checkArgument(!resources.isEmpty(), "Must provide at least one test resource."); Assertions.checkArgument(!resources.isEmpty(), "Must provide at least one test resource.");
......
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