mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Move DefaultImageDecoderTest in tests
Move DefaultImageDecoderTest in tests since we can decode images with Robolectric's native graphics mode. PiperOrigin-RevId: 567259458
This commit is contained in:
parent
2052be0f51
commit
603d36726f
2 changed files with 4 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ public final class DefaultImageDecoder
|
|||
}
|
||||
|
||||
@Override
|
||||
public final String getName() {
|
||||
public String getName() {
|
||||
return "DefaultImageDecoder";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ package androidx.media3.exoplayer.image;
|
|||
import static androidx.media3.common.util.Assertions.checkNotNull;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static org.junit.Assert.assertThrows;
|
||||
import static org.robolectric.annotation.GraphicsMode.Mode.NATIVE;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
|
|
@ -31,9 +32,11 @@ import org.junit.After;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.annotation.GraphicsMode;
|
||||
|
||||
/** Unit tests for {@link DefaultImageDecoder}. */
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@GraphicsMode(value = NATIVE)
|
||||
public class DefaultImageDecoderTest {
|
||||
|
||||
private static final String PNG_TEST_IMAGE_PATH = "media/png/non-motion-photo-shortened.png";
|
||||
Loading…
Reference in a new issue