mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08: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
@ -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…
x
Reference in New Issue
Block a user