public static final class DataSourceContractTest.TestResource extends Object
DataSource instance.| Modifier and Type | Class | Description |
|---|---|---|
static class |
DataSourceContractTest.TestResource.Builder |
Builder for
DataSourceContractTest.TestResource instances. |
| 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.
|
boolean |
isEndOfInputExpected() |
Returns whether
DataReader.read(byte[], int, int) is expected to return C.RESULT_END_OF_INPUT
after all the resource data are read. |
@Nullable public String getName()
public Uri getUri()
public byte[] getExpectedBytes()
public boolean isEndOfInputExpected()
DataReader.read(byte[], int, int) is expected to return C.RESULT_END_OF_INPUT
after all the resource data are read.