Use assumeTrue for libiamf availability check in IamfDecoderTest

This change ensures that the test uses `assumeTrue` to avoid failures when the `libiamf` library is not pre-built.

#cherrypick

PiperOrigin-RevId: 691333564
(cherry picked from commit 129cf8ea72)
This commit is contained in:
rohks 2024-10-30 01:58:46 -07:00 committed by Iván Budnik
parent ad09a02810
commit 358a3c62fa

View file

@ -16,6 +16,7 @@
package androidx.media3.decoder.iamf;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assume.assumeTrue;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.common.collect.ImmutableList;
@ -40,7 +41,7 @@ public final class IamfDecoderTest {
@Before
public void setUp() {
assertThat(IamfLibrary.isAvailable()).isTrue();
assumeTrue(IamfLibrary.isAvailable());
}
@Test