fix(benchmark): re-enable BaselineProfileBenchmark

This commit is contained in:
Harsh Shandilya 2022-12-08 02:59:58 +05:30
parent 46a9658dcd
commit 0ec03fc979
No known key found for this signature in database
2 changed files with 9 additions and 4 deletions

View file

@ -150,5 +150,14 @@
android:value="androidx.startup" android:value="androidx.startup"
tools:node="remove" /> tools:node="remove" />
</provider> </provider>
<!-- https://issuetracker.google.com/issues/258619948 -->
<receiver
android:name="androidx.profileinstaller.ProfileInstallReceiver"
android:permission="android.permission.DUMP"
android:exported="true">
<intent-filter>
<action android:name="androidx.profileinstaller.action.BENCHMARK_OPERATION" />
</intent-filter>
</receiver>
</application> </application>
</manifest> </manifest>

View file

@ -15,14 +15,10 @@ import androidx.test.filters.LargeTest
import androidx.test.platform.app.InstrumentationRegistry import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice import androidx.test.uiautomator.UiDevice
import org.junit.Before import org.junit.Before
import org.junit.Ignore
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
@LargeTest @LargeTest
@Ignore(
"These tests fail saying that ProfileInstaller 1.3.0-alpha02 should be used which we already are"
)
class BaselineProfileBenchmark { class BaselineProfileBenchmark {
@get:Rule val benchmarkRule = MacrobenchmarkRule() @get:Rule val benchmarkRule = MacrobenchmarkRule()
private lateinit var device: UiDevice private lateinit var device: UiDevice