Export a few utility methods

Add a few utility methods to support generating TradeFed test plan in C-Suite

Test: go test .
Change-Id: I86a505068b5d5aa0f5a37b3e3a2465839a7480ef
This commit is contained in:
Yuexi Ma
2021-03-04 13:47:56 -08:00
parent 632f080f88
commit 627263fece
2 changed files with 28 additions and 1 deletions

View File

@@ -2429,3 +2429,16 @@ func TestDataNativeBinaries(t *testing.T) {
t.Errorf("Unexpected test data - expected: %q, actual: %q", expected, actual)
}
}
func TestDefaultInstallable(t *testing.T) {
ctx, _ := testJava(t, `
java_test_host {
name: "foo"
}
`)
buildOS := android.BuildOs.String()
module := ctx.ModuleForTests("foo", buildOS+"_common").Module().(*TestHost)
assertDeepEquals(t, "Default installable value should be true.", proptools.BoolPtr(true),
module.properties.Installable)
}