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

Commit 574d7a9e authored by Tianfan Zhang's avatar Tianfan Zhang
Browse files

Enable flag in AmbientCueCoreStartable unit test.

Bug: 424899242
Test: atest AmbientCueCoreStartableTest
Flag: com.android.systemui.enable_underlay
Change-Id: I9832a1cdc96c623b51cf400458714d35c2a8eeaa
parent baeb6cca
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -17,8 +17,10 @@
package com.android.systemui.ambientcue.ui.startable

import android.os.UserHandle
import android.platform.test.annotations.EnableFlags
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import com.android.systemui.Flags
import com.android.systemui.SysuiTestCase
import com.android.systemui.ambientcue.data.repository.ambientCueRepository
import com.android.systemui.ambientcue.data.repository.fake
@@ -36,6 +38,7 @@ class AmbientCueCoreStartableTest : SysuiTestCase() {
    private val kosmos = testKosmos()

    @Test
    @EnableFlags(Flags.FLAG_ENABLE_UNDERLAY)
    fun isAmbientCueEnabled_setFalse_disableOverlay() =
        kosmos.runTest {
            ambientCueCoreStartable.start()
@@ -47,6 +50,7 @@ class AmbientCueCoreStartableTest : SysuiTestCase() {
        }

    @Test
    @EnableFlags(Flags.FLAG_ENABLE_UNDERLAY)
    fun isAmbientCueEnabled_setTrue_enableOverlay() =
        kosmos.runTest {
            ambientCueCoreStartable.start()