|
|
|
@ -32,8 +32,8 @@ import org.mozilla.fenix.GleanMetrics.Preferences
|
|
|
|
|
import org.mozilla.fenix.GleanMetrics.SearchDefaultEngine
|
|
|
|
|
import org.mozilla.fenix.components.metrics.MozillaProductDetector
|
|
|
|
|
import org.mozilla.fenix.components.toolbar.ToolbarPosition
|
|
|
|
|
import org.mozilla.fenix.ext.actualInactiveTabs
|
|
|
|
|
import org.mozilla.fenix.helpers.FenixRobolectricTestRunner
|
|
|
|
|
import org.mozilla.fenix.ext.potentialInactiveTabs
|
|
|
|
|
import org.mozilla.fenix.utils.BrowsersCache
|
|
|
|
|
import org.mozilla.fenix.utils.Settings
|
|
|
|
|
import org.robolectric.annotation.Config
|
|
|
|
@ -143,8 +143,8 @@ class FenixApplicationTest {
|
|
|
|
|
every { settings.searchTermTabGroupsAreEnabled } returns true
|
|
|
|
|
every { application.reportHomeScreenMetrics(settings) } just Runs
|
|
|
|
|
every { settings.inactiveTabsAreEnabled } returns true
|
|
|
|
|
mockkStatic("org.mozilla.fenix.tabstray.ext.TabSelectorsKt") {
|
|
|
|
|
every { browserStore.state.potentialInactiveTabs } returns listOf(mockk(), mockk())
|
|
|
|
|
mockkStatic("org.mozilla.fenix.ext.BrowserStateKt") {
|
|
|
|
|
every { browserStore.state.actualInactiveTabs(any()) } returns listOf(mockk(), mockk())
|
|
|
|
|
|
|
|
|
|
application.setStartupMetrics(browserStore, settings, browsersCache, mozillaProductDetector)
|
|
|
|
|
|
|
|
|
|