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

Commit 74e3ea54 authored by Neil Fuller's avatar Neil Fuller
Browse files

Fix broken telephony tests

Telephony tests were probably broken by commit
717f52f2dd8920d387c4d5143c7646787cec13bf.

Test: atest FrameworksTelephonyTests:ServiceStateTrackerTest
Change-Id: Ie07933a943ff03a4f734862025e243b58ea9d602
parent 07701d7a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -253,6 +253,14 @@ public class ContextFixture implements TestFixture<Context> {
            }
        }

        @Override
        public String getSystemServiceName(Class<?> serviceClass) {
            if (serviceClass == SubscriptionManager.class) {
                return Context.TELEPHONY_SUBSCRIPTION_SERVICE;
            }
            return super.getSystemServiceName(serviceClass);
        }

        @Override
        public int getUserId() {
            return 0;