docs/doc/reference/com/google/android/exoplayer2/testutil/DataSourceContractTest.TestResource.html
Package com.google.android.exoplayer2.testutil
Enclosing class:DataSourceContractTest
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 Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | DataSourceContractTest.TestResource.Builder |
Builder for DataSourceContractTest.TestResource instances.
|
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.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
@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.
-
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.
-
public byte[] getExpectedBytes()
Returns the expected contents of this resource.