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

Commit 91187d41 authored by Jake Hamby's avatar Jake Hamby
Browse files

Fix test case broken by change to ISms method signature.

A recent change to move ISms.aidl from frameworks/opt/telephony to
frameworks/base caused this test case not to compile. Fixed the caller
to add the new argument containing the package name of the caller.

Bug: 8107987
Change-Id: I2b1acefbfe0588a940a506f891077b00fa026d2d
parent 48a57c9a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.internal.telephony;

import android.app.ActivityThread;
import android.os.ServiceManager;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.Suppress;
@@ -33,7 +34,7 @@ public class SimSmsTest extends TestCase {
        ISms sms = ISms.Stub.asInterface(ServiceManager.getService("isms"));
        assertNotNull(sms);

        List<SmsRawData> records = sms.getAllMessagesFromIccEf();
        List<SmsRawData> records = sms.getAllMessagesFromIccEf(ActivityThread.currentPackageName());
        assertNotNull(records);
        assertTrue(records.size() >= 0);