Loading android/app/tests/unit/src/com/android/bluetooth/pan/BluetoothTetheringNetworkFactoryTest.java +15 −0 Original line number Diff line number Diff line Loading @@ -115,4 +115,19 @@ public class BluetoothTetheringNetworkFactoryTest { verify(mPanService, times(1)).getConnectedDevices(); verify(mPanService, times(1)).disconnect(bluetoothDevice); } @Test public void networkStopEmptyIface() { if (Looper.myLooper() == null) { Looper.prepare(); } BluetoothTetheringNetworkFactory bluetoothTetheringNetworkFactory = new BluetoothTetheringNetworkFactory(mContext, Looper.myLooper(), mPanService); bluetoothTetheringNetworkFactory.stopNetwork(); bluetoothTetheringNetworkFactory.stopReverseTether(); assertThat(bluetoothTetheringNetworkFactory.getProvider()).isNull(); } } Loading
android/app/tests/unit/src/com/android/bluetooth/pan/BluetoothTetheringNetworkFactoryTest.java +15 −0 Original line number Diff line number Diff line Loading @@ -115,4 +115,19 @@ public class BluetoothTetheringNetworkFactoryTest { verify(mPanService, times(1)).getConnectedDevices(); verify(mPanService, times(1)).disconnect(bluetoothDevice); } @Test public void networkStopEmptyIface() { if (Looper.myLooper() == null) { Looper.prepare(); } BluetoothTetheringNetworkFactory bluetoothTetheringNetworkFactory = new BluetoothTetheringNetworkFactory(mContext, Looper.myLooper(), mPanService); bluetoothTetheringNetworkFactory.stopNetwork(); bluetoothTetheringNetworkFactory.stopReverseTether(); assertThat(bluetoothTetheringNetworkFactory.getProvider()).isNull(); } }