Merge pull request #839 from martinbonnin/allow-notifications

Startup benchmarks: allow notifications
pull/844/head
Don Turner 1 year ago committed by GitHub
commit 0fcf104deb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,7 @@ import androidx.benchmark.macro.StartupTimingMetric
import androidx.benchmark.macro.junit4.MacrobenchmarkRule
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.google.samples.apps.nowinandroid.PACKAGE_NAME
import com.google.samples.apps.nowinandroid.allowNotifications
import com.google.samples.apps.nowinandroid.foryou.forYouWaitForContent
import org.junit.Rule
import org.junit.Test
@ -86,6 +87,7 @@ abstract class AbstractStartupBenchmark(private val startupMode: StartupMode) {
},
) {
startActivityAndWait()
allowNotifications()
// Waits until the content is ready to capture Time To Full Display
forYouWaitForContent()
}

Loading…
Cancel
Save