mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
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:
parent
96b923b610
commit
129cf8ea72
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue