mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +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
(cherry picked from commit 129cf8ea72)
This commit is contained in:
parent
ad09a02810
commit
358a3c62fa
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