Add container property to aconfig_declarations.
Bug: 311155208 Test: Unit test Change-Id: I7b187138856d0144203961e82b6dad5e2f8eed9d
This commit is contained in:
@@ -26,6 +26,7 @@ func TestAconfigDeclarations(t *testing.T) {
|
||||
aconfig_declarations {
|
||||
name: "module_name",
|
||||
package: "com.example.package",
|
||||
container: "com.android.foo",
|
||||
srcs: [
|
||||
"foo.aconfig",
|
||||
"bar.aconfig",
|
||||
@@ -37,8 +38,9 @@ func TestAconfigDeclarations(t *testing.T) {
|
||||
module := result.ModuleForTests("module_name", "").Module().(*DeclarationsModule)
|
||||
|
||||
// Check that the provider has the right contents
|
||||
depData := result.ModuleProvider(module, declarationsProviderKey).(declarationsProviderData)
|
||||
depData := result.ModuleProvider(module, DeclarationsProviderKey).(DeclarationsProviderData)
|
||||
android.AssertStringEquals(t, "package", depData.Package, "com.example.package")
|
||||
android.AssertStringEquals(t, "container", depData.Container, "com.android.foo")
|
||||
if !strings.HasSuffix(depData.IntermediatePath.String(), "/intermediate.pb") {
|
||||
t.Errorf("Missing intermediates path in provider: %s", depData.IntermediatePath.String())
|
||||
}
|
||||
|
Reference in New Issue
Block a user