Whether a resource resolves to a known length or not is more than just a property of the resource & data source - for example if `DataSpec.flags` contains `ALLOW_GZIP` then the length might be unresolved. More generally, a `DataSource` could randomly return `C.UNKNOWN_LENGTH` from `open()` 50% of the time and still fulfil the `DataSource` interface. This makes it ~impossible to write a meaningful assertion aroun this. So this change relaxes the assertion slightly to more closely match the definition of the `DataSource` interface. We leave the `resolveToUnknownLength` toggle in `WebServerDispatcher.Resource` because this is still useful for simulating the case of a server that is serving a file it doesn't know the length of. PiperOrigin-RevId: 351124246
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| truth | Loading commit data... | |
| Action.java | Loading commit data... | |
| ActionSchedule.java | Loading commit data... | |
| AdditionalFailureInfo.java | Loading commit data... | |
| AutoAdvancingFakeClock.java | Loading commit data... | |
| CacheAsserts.java | Loading commit data... | |
| CapturingAudioSink.java | Loading commit data... | |
| CapturingRenderersFactory.java | Loading commit data... | |
| DataSourceContractTest.java | Loading commit data... | |
| DecoderCountersUtil.java | Loading commit data... | |
| DefaultRenderersFactoryAsserts.java | Loading commit data... | |
| DownloadBuilder.java | Loading commit data... | |
| DummyMainThread.java | Loading commit data... | |
| DumpFileAsserts.java | Loading commit data... | |
| Dumper.java | Loading commit data... | |
| ExoHostedTest.java | Loading commit data... | |
| ExoPlayerTestRunner.java | Loading commit data... | |
| ExtractorAsserts.java | Loading commit data... | |
| FakeAdaptiveDataSet.java | Loading commit data... | |
| FakeAdaptiveMediaPeriod.java | Loading commit data... | |
| FakeAdaptiveMediaSource.java | Loading commit data... | |
| FakeAudioRenderer.java | Loading commit data... | |
| FakeChunkSource.java | Loading commit data... | |
| FakeClock.java | Loading commit data... | |
| FakeDataSet.java | Loading commit data... | |
| FakeDataSource.java | Loading commit data... | |
| FakeExoMediaDrm.java | Loading commit data... | |
| FakeExtractorInput.java | Loading commit data... | |
| FakeExtractorOutput.java | Loading commit data... | |
| FakeMediaChunk.java | Loading commit data... | |
| FakeMediaChunkIterator.java | Loading commit data... | |
| FakeMediaClockRenderer.java | Loading commit data... | |
| FakeMediaPeriod.java | Loading commit data... | |
| FakeMediaSource.java | Loading commit data... | |
| FakeRenderer.java | Loading commit data... | |
| FakeSampleStream.java | Loading commit data... | |
| FakeShuffleOrder.java | Loading commit data... | |
| FakeTimeline.java | Loading commit data... | |
| FakeTrackOutput.java | Loading commit data... | |
| FakeTrackSelection.java | Loading commit data... | |
| FakeTrackSelector.java | Loading commit data... | |
| FakeVideoRenderer.java | Loading commit data... | |
| HostActivity.java | Loading commit data... | |
| MediaPeriodAsserts.java | Loading commit data... | |
| MediaSourceTestRunner.java | Loading commit data... | |
| NoUidTimeline.java | Loading commit data... | |
| StubExoPlayer.java | Loading commit data... | |
| TestExoPlayerBuilder.java | Loading commit data... | |
| TestUtil.java | Loading commit data... | |
| TimelineAsserts.java | Loading commit data... | |
| WebServerDispatcher.java | Loading commit data... | |
| package-info.java | Loading commit data... |