Make container mandatory in aconfig_declarations.

Bug: 330354107
Test: Unit test and CI.

Ignore-AOSP-First: It is easier to detect all the missing ones in internal
master.

Change-Id: I4ab4271c67a35d0fdcc0b57c27260e29fb7dea56
This commit is contained in:
Yu Liu
2024-03-20 19:47:28 +00:00
parent dd6e2e10af
commit e916a2c758
13 changed files with 126 additions and 20 deletions

View File

@@ -50,6 +50,7 @@ func testCCCodegenModeHelper(t *testing.T, bpMode string, ruleMode string) {
aconfig_declarations {
name: "my_aconfig_declarations",
package: "com.example.package",
container: "com.android.foo",
srcs: ["foo.aconfig"],
}
@@ -92,6 +93,7 @@ func testIncorrectCCCodegenModeHelper(t *testing.T, bpMode string, err string) {
aconfig_declarations {
name: "my_aconfig_declarations",
package: "com.example.package",
container: "com.android.foo",
srcs: ["foo.aconfig"],
}
@@ -126,6 +128,7 @@ func TestAndroidMkCcLibrary(t *testing.T) {
aconfig_declarations {
name: "my_aconfig_declarations_bar",
package: "com.example.package",
container: "com.android.foo",
srcs: ["bar.aconfig"],
}
@@ -176,6 +179,7 @@ func TestForceReadOnly(t *testing.T) {
aconfig_declarations {
name: "my_aconfig_declarations",
package: "com.example.package",
container: "com.android.foo",
srcs: ["foo.aconfig"],
}