| package androidx.wear.ongoingactivity |
| |
| import org.junit.runners.model.FrameworkMethod |
| import org.robolectric.RobolectricTestRunner |
| import org.robolectric.internal.bytecode.InstrumentationConfiguration |
| |
| class PatchedRobolectricTestRunner(testClass: Class<*>?) : RobolectricTestRunner(testClass) { |
| override fun createClassLoaderConfig(method: FrameworkMethod?): InstrumentationConfiguration = |
| InstrumentationConfiguration.Builder(super.createClassLoaderConfig(method)) |
| .doNotInstrumentPackage("androidx.wear.ongoingactivity") |
| .build() |
| } |