test: remove redundant coverage and shorten timers

This commit is contained in:
edde746
2026-07-13 02:15:03 +02:00
parent c4e9fa1650
commit e6e7d8cdfd
63 changed files with 90 additions and 1760 deletions
@@ -26,17 +26,6 @@ class DvBitstreamSanitizerTest {
assertEquals(0, buffer.position())
}
@Test
fun stripsSuffixSei() {
val vcl = annexBNal(1, byteArrayOf(0x01))
val suffixSei = annexBNal(40, hdr10PlusSeiPayload())
val buffer = bufferOf(vcl, suffixSei)
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
assertArrayEquals(vcl, remainingBytes(buffer))
}
@Test
fun handles3ByteStartCodes() {
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02), startCodeLen = 3)
@@ -141,16 +130,6 @@ class DvBitstreamSanitizerTest {
assertEquals(0xBB.toByte(), buffer.get(1))
}
@Test
fun worksOnDirectBuffers() {
val vcl = annexBNal(1, byteArrayOf(0x01, 0x02))
val buffer = directBufferOf(vcl, hdr10PlusSei())
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
assertArrayEquals(vcl, remainingBytes(buffer))
}
@Test
fun emptyBufferIsNoOp() {
val buffer = ByteBuffer.allocate(0)
@@ -15,7 +15,6 @@ import androidx.media3.extractor.mkv.MatroskaExtractor
import java.io.EOFException
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertThrows
import org.junit.Assert.assertTrue
import org.junit.Test
@@ -190,16 +189,6 @@ class LatmMatroskaExtractorTest {
assertFalse(isLoasAcmTrack(null, loas))
}
@Test
fun formatIsEmittedBeforeFirstSample() {
val output = extractFixture()
val track = output.tracks.values.first()
assertNotNull(track.formats.firstOrNull())
// LatmReader emits the format from the first StreamMuxConfig, which arrives
// with the first LOAS frame — before any sample metadata is committed.
assertTrue(track.samples.isNotEmpty())
}
@Test
fun rejectsUnexpectedEndOfInput() {
val output = LatmTrackOutput(FakeTrackOutput(), 1)
@@ -272,7 +272,7 @@ class SpecRenderEngineTest {
// last-rendered slot so GL skips the upload entirely.
val h = Harness()
h.script.add(changed())
val first = h.engine.service(0, pinned = true) as SpecRenderEngine.Outcome.Post
h.engine.service(0, pinned = true)
var pts = 0L
repeat(4) {
// build cadence; renders return changed for simplicity
@@ -287,7 +287,6 @@ class SpecRenderEngineTest {
assertTrue(outcome.specHit)
assertFalse(outcome.newContent)
assertEquals(before, h.calls.size)
assertNotNull(first) // first slot existed; hit reposts whichever slot was last rendered
}
@Test