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

Commit 38089ec5 authored by Jin Park's avatar Jin Park Committed by Jin Seok Park
Browse files

ExifInterface: Handle test behavior

This CL corrects the compare values of lg_g4_iso_800 test file, which
was originally default values. Also, since .xml files do not handle
empty string cases, this CL adds code to treat it equal to a null
value.

Bug: 29409825
Change-Id: I26ed06a2ba689911c45885cfdaf9dfc018dfa7da
parent c900c660
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -90,8 +90,8 @@
        <item>0.0040</item>
        <item>0.0</item>
        <item>442/100</item>
        <item>0/1</item>
        <item>0</item>
        <item />
        <item />
        <item>1970:01:17</item>
        <item>53/1,50/1,423/100</item>
        <item>N</item>
+1 −0
Original line number Diff line number Diff line
@@ -252,6 +252,7 @@ public class ExifInterfaceTest extends AndroidTestCase {
        if (stringValue != null) {
            stringValue = stringValue.trim();
        }
        stringValue = (stringValue == "") ? null : stringValue;

        assertEquals(expectedValue, stringValue);
    }