add apex_available_name variant_version to bp2build unit tests

Bug: 285138555
Test: go test ./bp2build
Change-Id: Ide31e7f651b11857afc4570a891fb94460d8ea54
This commit is contained in:
Sam Delmerico 2023-06-06 15:47:30 -04:00
parent 743b4c5a9b
commit e860d1429e

View file

@ -123,6 +123,7 @@ apex {
name: "com.android.apogee",
manifest: "apogee_manifest.json",
androidManifest: "ApogeeAndroidManifest.xml",
apex_available_name: "apogee_apex_name",
file_contexts: ":com.android.apogee-file_contexts",
min_sdk_version: "29",
key: "com.android.apogee.key",
@ -144,11 +145,13 @@ apex {
],
package_name: "com.android.apogee.test.package",
logging_parent: "logging.parent",
variant_version: "3",
}
`,
ExpectedBazelTargets: []string{
MakeBazelTarget("apex", "com.android.apogee", AttrNameToString{
"android_manifest": `"ApogeeAndroidManifest.xml"`,
"android_manifest": `"ApogeeAndroidManifest.xml"`,
"apex_available_name": `"apogee_apex_name"`,
"binaries": `[
":cc_binary_1",
":sh_binary_2",
@ -185,10 +188,11 @@ apex {
":prebuilt_1",
":prebuilt_2",
]`,
"updatable": "False",
"compressible": "False",
"package_name": `"com.android.apogee.test.package"`,
"logging_parent": `"logging.parent"`,
"updatable": "False",
"compressible": "False",
"package_name": `"com.android.apogee.test.package"`,
"logging_parent": `"logging.parent"`,
"variant_version": `"3"`,
}),
}})
}