Back to Exoplayer

DataSourceContractTest.TestResource (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/DataSourceContractTest.TestResource.html

latest2.4 KB
Original Source

Package com.google.android.exoplayer2.testutil

Class DataSourceContractTest.TestResource


public static final classDataSourceContractTest.TestResourceextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Information about a resource that can be used to test the DataSource instance.

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static class | DataSourceContractTest.TestResource.Builder | Builder for DataSourceContractTest.TestResource instances. |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | byte[] | getExpectedBytes() | Returns the expected contents of this resource. | | String | getName() | Returns a human-readable name for the resource, for use in test failure messages. | | Uri | getUri() | Returns the URI where the resource is available. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

- 

getName

@Nullable
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getName()

Returns a human-readable name for the resource, for use in test failure messages.

- 

getUri

public[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")getUri()

Returns the URI where the resource is available.

- 

getExpectedBytes

public byte[] getExpectedBytes()

Returns the expected contents of this resource.