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

Commit fdbc3a25 authored by William Escande's avatar William Escande
Browse files

AutoOnFeature: Add missing test case

Bug: 311772251
Flag: TEST_ONLY
Test: atest ServiceBluetoothRoboTests
Change-Id: I22a39849bca311f30d2648df2e07e8b2b9e44d44
parent be3d2e85
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -315,6 +315,13 @@ class AutoOnFeatureTest {
        }
        }
    }
    }


    @Test
    fun apiSetUserEnableToTrue_whenAlreadyEnabled_doNothing() {
        setUserEnabled(true)

        assertThat(shadowOf(context as Application).getBroadcastIntents().size).isEqualTo(0)
    }

    @Test
    @Test
    fun pause_whenIdle_noTimeSave() {
    fun pause_whenIdle_noTimeSave() {
        pause()
        pause()