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

Commit c87e8755 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Modernize CallChipInteractorTest to use Kosmos.Fixture." into main

parents 847b7246 4e63163e
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@ import android.platform.test.annotations.EnableFlags
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import androidx.test.filters.SmallTest
import com.android.systemui.SysuiTestCase
import com.android.systemui.SysuiTestCase
import com.android.systemui.kosmos.Kosmos
import com.android.systemui.kosmos.collectLastValue
import com.android.systemui.kosmos.collectLastValue
import com.android.systemui.kosmos.runTest
import com.android.systemui.kosmos.runTest
import com.android.systemui.kosmos.useUnconfinedTestDispatcher
import com.android.systemui.kosmos.useUnconfinedTestDispatcher
@@ -37,10 +38,10 @@ import org.junit.runner.RunWith
@SmallTest
@SmallTest
@RunWith(AndroidJUnit4::class)
@RunWith(AndroidJUnit4::class)
class CallChipInteractorTest : SysuiTestCase() {
class CallChipInteractorTest : SysuiTestCase() {
    val kosmos = testKosmos().useUnconfinedTestDispatcher()
    private val kosmos = testKosmos().useUnconfinedTestDispatcher()
    val repo = kosmos.ongoingCallRepository
    private val Kosmos.repo by Kosmos.Fixture { kosmos.ongoingCallRepository }


    val underTest = kosmos.callChipInteractor
    private val Kosmos.underTest by Kosmos.Fixture { kosmos.callChipInteractor }


    @Test
    @Test
    fun ongoingCallState_noCall_isNoCall() =
    fun ongoingCallState_noCall_isNoCall() =