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

Commit 1db1dd66 authored by Malcolm Chen's avatar Malcolm Chen Committed by android-build-merger
Browse files

Merge "Fix bug that sPhones is not mocked in test." am: e3e13a38 am: a3267c08

am: 4885587e

Change-Id: Ic9c55ead4b4b22bd71990b371bc9722bf23cef05
parents a5e5f9d5 4885587e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ public abstract class TelephonyTest {
    private Object mLock = new Object();
    private boolean mReady;
    protected HashMap<String, IBinder> mServiceManagerMockedServices = new HashMap<>();
    private Phone[] mPhones = new Phone[] {mPhone};
    private Phone[] mPhones;


    protected HashMap<Integer, ImsManager> mImsManagerInstances = new HashMap<>();
@@ -307,6 +307,7 @@ public abstract class TelephonyTest {
        TAG = tag;
        MockitoAnnotations.initMocks(this);

        mPhones = new Phone[] {mPhone};
        mSimulatedCommands = new SimulatedCommands();
        mContextFixture = new ContextFixture();
        mContext = mContextFixture.getTestDouble();
@@ -457,6 +458,7 @@ public abstract class TelephonyTest {

        //SIM
        doReturn(1).when(mTelephonyManager).getSimCount();
        doReturn(1).when(mTelephonyManager).getPhoneCount();

        //Data
        //Initial state is: userData enabled, provisioned.