Modern Apps git

← Modern-Apps.git

library/locationprovider: shared test scaffolding sweep

Commit
e5819c63796e20c3c2675c417afc8852b00025ff
Author
Vayun Mathur <[email protected]>
When
2026-12-01 22:48 UTC (4 days ago)
Parents
c86d27c
Remove class-level @Config(sdk = [34]) annotations that only duplicate the repo-wide sdk=34 default in build-logic/shared-test-resources/robolectric.properties, dropping the Config import where it becomes unused. Qualifier/shadow/application and non-34 configs are untouched; files dirty from other agents' in-flight work were skipped file-by-file.

Verified: :library:locationprovider:testDebugUnitTest green (BUILD SUCCESSFUL).

Lint (:lint / :lintVitalRelease) was not run for this module in this sweep.

Diff

library/locationprovider/src/test/java/com/android/location/provider/LocationStubReflectionTest.kt
diff --git a/library/locationprovider/src/test/java/com/android/location/provider/LocationStubReflectionTest.kt b/library/locationprovider/src/test/java/com/android/location/provider/LocationStubReflectionTest.ktindex 68888a324b..f2d5bc72d4 100644--- a/library/locationprovider/src/test/java/com/android/location/provider/LocationStubReflectionTest.kt+++ b/library/locationprovider/src/test/java/com/android/location/provider/LocationStubReflectionTest.kt@@ -5,7 +5,6 @@ import kotlin.test.assertEquals import kotlin.test.assertFailsWith import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config  /**  * The platform-only value types have private constructors (mirroring AOSP):@@ -13,7 +12,6 @@ import org.robolectric.annotation.Config  * stub exception if ever invoked on the stub class itself.  */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class LocationStubReflectionTest {      private fun <T> instantiate(type: Class<T>): T {
library/locationprovider/src/test/java/com/android/location/provider/LocationStubsTest.kt
diff --git a/library/locationprovider/src/test/java/com/android/location/provider/LocationStubsTest.kt b/library/locationprovider/src/test/java/com/android/location/provider/LocationStubsTest.ktindex 064386186b..02c26c5e50 100644--- a/library/locationprovider/src/test/java/com/android/location/provider/LocationStubsTest.kt+++ b/library/locationprovider/src/test/java/com/android/location/provider/LocationStubsTest.kt@@ -13,7 +13,6 @@ import kotlin.test.assertNull import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config  /**  * Pins the compile-only stub contract: stub bodies throw, no-op bodies do@@ -22,7 +21,6 @@ import org.robolectric.annotation.Config  * runtime the framework's own implementations replace them.  */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class LocationStubsTest {      private val context = ApplicationProvider.getApplicationContext<Context>()