@ -14,6 +14,7 @@ import androidx.recyclerview.widget.RecyclerView
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Rule
import org.junit.Test
import org.mozilla.fenix.R
@ -22,7 +23,8 @@ import org.mozilla.fenix.helpers.HomeActivityTestRule
// BEFORE INCREASING THESE VALUES, PLEASE CONSULT WITH THE PERF TEAM.
private const val EXPECTED _SUPPRESSION _COUNT = 19
private const val EXPECTED _RUNBLOCKING _COUNT = 0
@Suppress ( " TopLevelPropertyNaming " ) // it's silly this would have a different naming convention b/c no const
private val EXPECTED _RUNBLOCKING _RANGE = 0. . 1 // CI has +1 counts compared to local runs: increment these together
private const val EXPECTED _COMPONENT _INIT _COUNT = 50
private const val EXPECTED _VIEW _HIERARCHY _DEPTH = 12
private const val EXPECTED _RECYCLER _VIEW _CONSTRAINT _LAYOUT _CHILDREN = 4
@ -100,7 +102,7 @@ class StartupExcessiveResourceUseTest {
val actualNumberOfInflations = InflationCounter . inflationCount . get ( )
assertEquals ( failureMsgStrictMode , EXPECTED _SUPPRESSION _COUNT , actualSuppresionCount )
assert Equals( failureMsgRunBlocking , EXPECTED _RUNBLOCKING _COUNT , actualRunBlocking )
assert True( failureMsgRunBlocking + " actual: $actualRunBlocking " , actualRunBlocking in EXPECTED _RUNBLOCKING _RANGE )
assertEquals ( failureMsgComponentInit , EXPECTED _COMPONENT _INIT _COUNT , actualComponentInitCount )
assertEquals ( failureMsgViewHierarchyDepth , EXPECTED _VIEW _HIERARCHY _DEPTH , actualViewHierarchyDepth )
assertEquals (