Skip audio encoding bitrate setting test on API <= 23

The encoder output format on API 23 does not seem to contain bitrate,
hence the test fails.

PiperOrigin-RevId: 686047480
This commit is contained in:
sheenachhabra 2024-10-15 04:13:06 -07:00 committed by Copybara-Service
parent cb90bb38ee
commit 407bd49ed5

View file

@ -2280,6 +2280,8 @@ public class TransformerEndToEndTest {
@Test
public void export_setAudioEncodingBitrate_configuresEncoderWithRequestedBitrate()
throws Exception {
// On API 23, the encoder output format does not seem to contain bitrate, hence the test fails.
assumeTrue(Util.SDK_INT > 23);
Context context = ApplicationProvider.getApplicationContext();
int requestedBitrate = 60_000;
// The MediaMuxer is not writing the bitrate hence use the InAppMuxer.