Files
Jared Duke c85aed1723 Add tests cases for aconfig Java diff checks
These tests validate that shrinking/optimization can properly strip
out flag-guarded branches and referenced classes. This is the start
of building up a library of patterns and practices that we can prove
yield zero functional diff with existing/new tooling, and to avoid
regressions in codegen/optimization that allows such stripping

FIXED_READ_ONLY_FLAG_REASON=OTHER_SYSTEM_HEALTH_APPROVED

Bug: 471241538
Test: atest aconfig_diff_test --host
Flag: EXEMPT TEST_ONLY
Change-Id: I80ab9d51ef991355a26ae78d2a0ab8bdac9be08e
2026-02-06 18:52:19 +00:00
..

Aconfig Diff

Projects and tests in this folder are intended to support functional diff'ing of aconfig-flagged code. The idea is to have tooling and infrastructure that can check whether a particular flagged-change yields build artifacts that are functionally equivalent when the flag is read-only and disabled.

See also b/425731005.

Tests

A collection of various aconfig-flagged scenarios relative to an unflagged baseline, with various levels of optimzied outputs. This both validate blessed patterns of flagged developement, and guards against regressions in either codegen output or related optimization infrastructure.