contacts: shared test scaffolding sweep
- Commit
7939acee93c3053a43d984404598bbc75a4f46f9- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-01 22:48 UTC (4 days ago)
- Parents
3983769
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. NOT test-green: :contacts:testDevUnitTest had 2 failures in classes this commit does not touch (InsertOrEditIntentActivityPass2Test, ui/DeepInteractionsPass2Test, both exercising other agents' in-flight InsertOrEdit UI work); a later re-run was killed by the host OOM killer under load 150+. Hold this commit at merge time and re-run contacts. Lint (:lint / :lintVitalRelease) was not run for this module in this sweep.
Diff
contacts/src/test/java/com/vayunmathur/contacts/data/SimThrowingW5Test.kt
diff --git a/contacts/src/test/java/com/vayunmathur/contacts/data/SimThrowingW5Test.kt b/contacts/src/test/java/com/vayunmathur/contacts/data/SimThrowingW5Test.ktindex 1c1b5ddef9..049a2aaa3c 100644--- a/contacts/src/test/java/com/vayunmathur/contacts/data/SimThrowingW5Test.kt+++ b/contacts/src/test/java/com/vayunmathur/contacts/data/SimThrowingW5Test.kt@@ -12,12 +12,10 @@ import kotlin.test.assertEquals import kotlin.test.assertFalse import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config import org.robolectric.shadows.ShadowContentResolver /** W5: SIM data source failure branches against providers that throw. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class SimThrowingW5Test { private val ctx get() = ApplicationProvider.getApplicationContext<Context>()
contacts/src/test/java/com/vayunmathur/contacts/data/SystemDefaultAccountW5Test.kt
diff --git a/contacts/src/test/java/com/vayunmathur/contacts/data/SystemDefaultAccountW5Test.kt b/contacts/src/test/java/com/vayunmathur/contacts/data/SystemDefaultAccountW5Test.ktindex e74e214366..b30971d348 100644--- a/contacts/src/test/java/com/vayunmathur/contacts/data/SystemDefaultAccountW5Test.kt+++ b/contacts/src/test/java/com/vayunmathur/contacts/data/SystemDefaultAccountW5Test.kt@@ -6,11 +6,9 @@ import kotlin.test.Test import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** W5: SystemDefaultAccountSource must never throw on a host without the platform APIs. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class SystemDefaultAccountW5Test { private val ctx get() = ApplicationProvider.getApplicationContext<Context>()
contacts/src/test/java/com/vayunmathur/contacts/pure/VcfExportW5Test.kt
diff --git a/contacts/src/test/java/com/vayunmathur/contacts/pure/VcfExportW5Test.kt b/contacts/src/test/java/com/vayunmathur/contacts/pure/VcfExportW5Test.ktindex 5eecf1e8dd..53c151f587 100644--- a/contacts/src/test/java/com/vayunmathur/contacts/pure/VcfExportW5Test.kt+++ b/contacts/src/test/java/com/vayunmathur/contacts/pure/VcfExportW5Test.kt@@ -29,11 +29,9 @@ import kotlinx.coroutines.runBlocking import kotlinx.datetime.LocalDate import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** W5: vCard export covers every field writer, folding, escaping and type tokens. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class VcfExportW5Test { private fun export(contacts: List<Contact>, groups: Map<Long, String> = emptyMap()): String =