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

Commit bba3bfb3 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Fix for failing unit test.

Bug: 25691379
Change-Id: I004f2990c9d30f697ce66cad2e5bae8c282eb083
parent aeff8257
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ public class GsmCdmaPhoneTest {
    DcTracker mDcTracker;
    @Mock
    GsmCdmaCall mGsmCdmaCall;
    @Mock
    SubscriptionController mSubscriptionController;

    private SimulatedCommands simulatedCommands;
    private ContextFixture contextFixture;
@@ -163,6 +165,11 @@ public class GsmCdmaPhoneTest {
        field.setAccessible(true);
        field.set(null, mImsManagerInstances);

        //Use reflection to mock singleton
        field = SubscriptionController.class.getDeclaredField("sInstance");
        field.setAccessible(true);
        field.set(null, mSubscriptionController);

        field = CdmaSubscriptionSourceManager.class.getDeclaredField(
                "mCdmaSubscriptionSourceChangedRegistrants");
        field.setAccessible(true);