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
This commit is contained in:
rohks 2024-10-30 01:58:46 -07:00 committed by Copybara-Service
parent 96b923b610
commit 129cf8ea72

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