Convert boot_image_sdk_test.go to fixtures am: 4a1d451405

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1645679

Change-Id: Ib0c44f2606238f9e438bfbeeda9a9929c87cd7bf
This commit is contained in:
Paul Duffin
2021-03-22 23:01:38 +00:00
committed by Automerger Merge Worker

View File

@@ -14,20 +14,27 @@
package sdk package sdk
import "testing" import (
"testing"
"android/soong/android"
)
func TestSnapshotWithBootImage(t *testing.T) { func TestSnapshotWithBootImage(t *testing.T) {
result := testSdkWithJava(t, ` result := android.GroupFixturePreparers(
sdk { prepareForSdkTestWithJava,
name: "mysdk", android.FixtureWithRootAndroidBp(`
boot_images: ["mybootimage"], sdk {
} name: "mysdk",
boot_images: ["mybootimage"],
}
boot_image { boot_image {
name: "mybootimage", name: "mybootimage",
image_name: "art", image_name: "art",
} }
`) `),
).RunTest(t)
CheckSnapshot(t, result, "mysdk", "", CheckSnapshot(t, result, "mysdk", "",
checkUnversionedAndroidBpContents(` checkUnversionedAndroidBpContents(`