Enforce one aconfig_declaration per aconfig package

Bug: b/319121098
Change-Id: Ibe3f1587ed7754f00f464cf385ce51ee9a142412
This commit is contained in:
Dennis Shen
2024-01-05 19:06:50 +00:00
parent 8f17189ced
commit 4e7773d81e
5 changed files with 68 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ func runJavaAndroidMkTest(t *testing.T, bp string) {
RunTestWithBp(t, bp+`
aconfig_declarations {
name: "my_aconfig_declarations_foo",
package: "com.example.package",
package: "com.example.package.foo",
srcs: ["foo.aconfig"],
}
@@ -45,7 +45,7 @@ func runJavaAndroidMkTest(t *testing.T, bp string) {
aconfig_declarations {
name: "my_aconfig_declarations_bar",
package: "com.example.package",
package: "com.example.package.bar",
srcs: ["bar.aconfig"],
}