Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9413d41f authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Remove MetadataTest.testEqualsDifferentImage

In order to avoid a strictMode policy violation, we decide not to compare image pixels

Bug: 247784807
Tag: #refactor
Test: atest BluetoothInstrumentationTests
Change-Id: I0c368a6f2c3095ac57a018140edce5bf21e26d6c
parent cd129a99
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -951,20 +951,6 @@ public class MetadataTest {
        assertThat(metadata).isNotEqualTo(metadata2);
    }

    /**
     * Make sure two Metadata objects are different if image doesn't match
     */
    @Test
    public void testEqualsDifferentImage() {
        MediaMetadata m =
                getMediaMetadataWithBitmap(MediaMetadata.METADATA_KEY_ART, mTestBitmap);
        MediaMetadata m2 =
                getMediaMetadataWithBitmap(MediaMetadata.METADATA_KEY_ART, mTestBitmap2);
        Metadata metadata = new Metadata.Builder().fromMediaMetadata(m).build();
        Metadata metadata2 = new Metadata.Builder().fromMediaMetadata(m2).build();
        assertThat(metadata).isNotEqualTo(metadata2);
    }

    /**
     * Make sure you can get any non-null string representation of Metadata
     */