media/libraries
ibaker 4a406be1bf DataSourceContractTest: Tighten assertions around 'not found' URIs
This change:
1. Updates `DataSourceContractTest` to allow multiple "not found"
   resources, and to include additional info (e.g. headers) on them.
2. Updates the contract test to assert that `DataSource.getUri()`
   returns the expected (non-null) value for "not found" resources
   between the failed `open()` call and a subsequent `close()` call.
   The `DataSource` is 'open' at this point (since it needs to be
   'closed' later), so `getUri()` must return non-null.
    * This change also fixes some implementations to comply with this
      contract. It also renames some imprecisely named `opened`
      booleans that **don't** track whether the `DataSource` is open
      or not.
3. Updates the contract test assertions to enforce that
   `DataSource.getResponseHeaders()` returns any headers associated
   with the 'not found' resource.
4. Configures `HttpDataSourceTestEnv` to provide both 404 and "server
   not found" resources, with the former having expected headers
   associated with it.

PiperOrigin-RevId: 689316121
2024-10-24 03:49:27 -07:00
..
cast Remove @DoNotInline annotations 2024-09-18 04:47:39 -07:00
common Implement parameterized testing for SpeedChangingAudioProcessor 2024-10-22 09:27:08 -07:00
common_ktx Add jvmTarget and kotlin-android plugin to common_ktx module 2024-08-15 10:36:10 -07:00
container Add support for identifying h263 box in MP4 files for H.263 video 2024-10-22 09:02:33 -07:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource DataSourceContractTest: Tighten assertions around 'not found' URIs 2024-10-24 03:49:27 -07:00
datasource_cronet DataSourceContractTest: Tighten assertions around 'not found' URIs 2024-10-24 03:49:27 -07:00
datasource_okhttp DataSourceContractTest: Tighten assertions around 'not found' URIs 2024-10-24 03:49:27 -07:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder MediaCodecVideoRenderer skips decoder inputs unused as reference 2024-07-09 03:43:06 -07:00
decoder_av1 Add 16 KB page support for decoder extensions on Android 15 2024-10-10 10:18:20 -07:00
decoder_ffmpeg Add 16 KB page support for decoder extensions on Android 15 2024-10-10 10:18:20 -07:00
decoder_flac Re-enable disabled tests in FlacExtractorSeekTest 2024-10-11 04:38:25 -07:00
decoder_iamf Simplify Flac extension build process 2024-10-11 03:09:32 -07:00
decoder_midi Add missing module registrations 2024-05-23 04:50:01 -07:00
decoder_opus Simplify Flac extension build process 2024-10-11 03:09:32 -07:00
decoder_vp9 Add 16 KB page support for decoder extensions on Android 15 2024-10-10 10:18:20 -07:00
effect Refactor frame rate notification to release control 2024-10-22 05:44:41 -07:00
exoplayer Remove unused parameter from VideoFrameRenderControl.FrameRenderer 2024-10-24 01:27:20 -07:00
exoplayer_dash Release the Surface at the end of every playback test 2024-10-18 08:01:50 -07:00
exoplayer_hls Release the Surface at the end of every playback test 2024-10-18 08:01:50 -07:00
exoplayer_ima Account for missing preroll when converting adPodIndex to adGroupIndex 2024-10-04 08:11:04 -07:00
exoplayer_rtsp Format with google-java-format 2024-09-12 04:47:05 +00:00
exoplayer_smoothstreaming Formatting and javadoc 2024-10-09 13:50:30 +01:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Fix duration calculation for AVI files 2024-10-23 03:34:04 -07:00
muxer Fix color info conversion in vpccBox method 2024-10-22 04:14:33 -07:00
session Removed unused constructor 2024-10-23 07:50:31 -07:00
test_data Fix duration calculation for AVI files 2024-10-23 03:34:04 -07:00
test_exoplayer_playback Revert erroneous changes 2024-07-24 16:17:02 +01:00
test_session_common Add media button preferences 2024-10-17 09:54:36 -07:00
test_session_current Suppress not-applicable lint warning 2024-10-23 07:11:58 -07:00
test_utils DataSourceContractTest: Tighten assertions around 'not found' URIs 2024-10-24 03:49:27 -07:00
test_utils_robolectric Bump minSdk to 21 and remove resulting simple dead code 2024-07-12 08:11:01 -07:00
transformer Use Format object in VideoFrameProcessor 2024-10-22 03:46:03 -07:00
ui Align spelling of fullScreen to fullscreen 2024-10-22 08:30:10 -07:00
ui_compose Move PlayerSurface from demo-compose to media3-ui-compose 2024-10-23 10:00:07 -07:00
ui_leanback Bump effect and leanback minSdk to 19 2024-01-10 07:22:00 -08:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00