mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 16:32:57 +01:00
13 lines
439 B
Kotlin
13 lines
439 B
Kotlin
package org.signal.baselineprofile
|
|
|
|
import androidx.test.uiautomator.By
|
|
import androidx.test.uiautomator.UiDevice
|
|
import androidx.test.uiautomator.Until
|
|
|
|
object BenchmarkSetup {
|
|
fun setup(type: String, device: UiDevice) {
|
|
device.executeShellCommand("am start -W -n org.thoughtcrime.securesms/org.signal.benchmark.BenchmarkSetupActivity --es setup-type $type")
|
|
device.wait(Until.hasObject(By.textContains("done")), 25_000L)
|
|
}
|
|
}
|