Convert boot_image_sdk_test.go to fixtures

Bug: 182638834
Test: m nothing
Change-Id: I8c9cb399b15d04ec8465a3b3bb4b43561aef46fd
This commit is contained in:
Paul Duffin 2021-03-18 10:12:26 +00:00
parent cf3ee2f87e
commit 4a1d451405
1 changed files with 18 additions and 11 deletions

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(`