From efc56f8bc03846706027076779cac33d489a680d Mon Sep 17 00:00:00 2001 From: Michael Hoisie Date: Sun, 24 Sep 2023 14:33:25 -0700 Subject: [PATCH] Remove custom MediaMetadataRetriever shadow in GlideTest This custom shadow is unused. --- .../test/java/com/bumptech/glide/GlideTest.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/library/test/src/test/java/com/bumptech/glide/GlideTest.java b/library/test/src/test/java/com/bumptech/glide/GlideTest.java index f7a8d1b720..8a5500e20d 100644 --- a/library/test/src/test/java/com/bumptech/glide/GlideTest.java +++ b/library/test/src/test/java/com/bumptech/glide/GlideTest.java @@ -27,7 +27,6 @@ import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; -import android.media.MediaMetadataRetriever; import android.net.Uri; import android.os.ParcelFileDescriptor; import android.view.ViewGroup; @@ -83,7 +82,6 @@ import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.robolectric.RobolectricTestRunner; -import org.robolectric.Shadows; import org.robolectric.annotation.Config; import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Implements; @@ -98,7 +96,6 @@ sdk = ROBOLECTRIC_SDK, shadows = { GlideTest.ShadowFileDescriptorContentResolver.class, - GlideTest.ShadowMediaMetadataRetriever.class, }) @SuppressWarnings("unchecked") public class GlideTest { @@ -863,16 +860,4 @@ public AssetFileDescriptor openAssetFileDescriptor(Uri uri, String type) { return URI_TO_FILE_DESCRIPTOR.get(uri); } } - - @Implements(MediaMetadataRetriever.class) - public static class ShadowMediaMetadataRetriever { - - @Implementation - @SuppressWarnings("unused") - public Bitmap getFrameAtTime() { - Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); - Shadows.shadowOf(bitmap).appendDescription(" from MediaMetadataRetriever"); - return bitmap; - } - } }