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

Commit d42e8880 authored by Shuo Qian's avatar Shuo Qian
Browse files

Modify ImsCallProfileTest to test longitude/latitude only

Test: Treehugger
Bug: 173437870
Change-Id: I8831efd693ceadd39bb97c493602066728ffb851
parent 9fe399f6
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -130,8 +130,10 @@ public class ImsCallProfileTest {
        Location locationFromData = data.getCallExtraParcelable(ImsCallProfile.EXTRA_LOCATION);
        Location locationFromData = data.getCallExtraParcelable(ImsCallProfile.EXTRA_LOCATION);
        Location locationFromUnparceledData = unparceledData.getCallExtraParcelable(
        Location locationFromUnparceledData = unparceledData.getCallExtraParcelable(
                ImsCallProfile.EXTRA_LOCATION);
                ImsCallProfile.EXTRA_LOCATION);
        assertEquals("unparceled data for EXTRA_LOCATION is not valid!",
        assertEquals("unparceled data for EXTRA_LOCATION latitude is not valid!",
                locationFromData, locationFromUnparceledData);
                locationFromData.getLatitude(), locationFromUnparceledData.getLatitude());
        assertEquals("unparceled data for EXTRA_LOCATION Longitude is not valid!",
                locationFromData.getLongitude(), locationFromUnparceledData.getLongitude());


        assertEquals("unparceled data for EXTRA_PICTURE_URL is not valid!",
        assertEquals("unparceled data for EXTRA_PICTURE_URL is not valid!",
                data.getCallExtra(ImsCallProfile.EXTRA_PICTURE_URL),
                data.getCallExtra(ImsCallProfile.EXTRA_PICTURE_URL),