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

Commit ad6a054e authored by Ta-wei Yen's avatar Ta-wei Yen
Browse files

Add comment to VisualVoicemailSmsFilterTest.testUnsupportedPdu()

Bug:29123941
Change-Id: I7f0aa1150a7cd013d7da7ea724ccc7da1d412af9
parent 649d6ef9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -26,6 +26,12 @@ import org.mockito.Mockito;

public class VisualVoicemailSmsFilterTest extends TestCase {

    /**
     * b/29123941 iPhone style notification SMS is neither 3GPP nor 3GPP2, but some plain text
     * message. {@link android.telephony.SmsMessage.createFromPdu()} will fail to parse it and
     * return an invalid object, causing {@link NullPointerException} on any operation if not
     * handled.
     */
    public void testUnsupportedPdu() {
        Context context = Mockito.mock(Context.class);
        TelephonyManager telephonyManager = Mockito.mock(TelephonyManager.class);