Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/satellite/data/prod/DeviceBasedSatelliteRepositoryImplTest.kt +0 −16 Original line number Diff line number Diff line Loading @@ -124,22 +124,6 @@ class DeviceBasedSatelliteRepositoryImplTest : SysuiTestCase() { assertThat(underTest.satelliteSupport.value).isEqualTo(SatelliteSupport.NotSupported) } @Test fun satelliteManagerThrows_doesNotCrash() = testScope.runTest { setupDefaultRepo() whenever(satelliteManager.registerForNtnSignalStrengthChanged(any(), any())) .thenThrow(SatelliteException(13)) val conn by collectLastValue(underTest.connectionState) val strength by collectLastValue(underTest.signalStrength) // Flows have not emitted, we haven't crashed assertThat(conn).isNull() assertThat(strength).isNull() } @Test fun connectionState_mapsFromSatelliteModemState() = testScope.runTest { Loading Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/satellite/data/prod/DeviceBasedSatelliteRepositoryImplTest.kt +0 −16 Original line number Diff line number Diff line Loading @@ -124,22 +124,6 @@ class DeviceBasedSatelliteRepositoryImplTest : SysuiTestCase() { assertThat(underTest.satelliteSupport.value).isEqualTo(SatelliteSupport.NotSupported) } @Test fun satelliteManagerThrows_doesNotCrash() = testScope.runTest { setupDefaultRepo() whenever(satelliteManager.registerForNtnSignalStrengthChanged(any(), any())) .thenThrow(SatelliteException(13)) val conn by collectLastValue(underTest.connectionState) val strength by collectLastValue(underTest.signalStrength) // Flows have not emitted, we haven't crashed assertThat(conn).isNull() assertThat(strength).isNull() } @Test fun connectionState_mapsFromSatelliteModemState() = testScope.runTest { Loading