Merge "add apex_available_name variant_version to bp2build unit tests"

This commit is contained in:
Treehugger Robot 2023-06-07 19:40:55 +00:00 committed by Gerrit Code Review
commit 226354ab1d

View file

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