Add "force-read-only" mode to xx_aconfig_library build rules

Test: added unit tests and CI
Bug: 317115655
Change-Id: Ia72159ffe072f9b4997f0d4d55a7b3db5356f5ed
This commit is contained in:
Zhi Dou
2023-12-20 23:14:34 +00:00
parent 412b33a6e7
commit 70e2124c88
6 changed files with 10 additions and 1 deletions

View File

@@ -227,6 +227,10 @@ func TestExportedMode(t *testing.T) {
testCodegenMode(t, "mode: `exported`,", "exported")
}
func TestForceReadOnlyMode(t *testing.T) {
testCodegenMode(t, "mode: `force-read-only`,", "force-read-only")
}
func TestUnsupportedMode(t *testing.T) {
testCodegenModeWithError(t, "mode: `unsupported`,", "mode: \"unsupported\" is not a supported mode")
}