Merge "Export a few utility methods"

This commit is contained in:
Yuexi Ma
2021-03-17 01:40:51 +00:00
committed by Gerrit Code Review
2 changed files with 28 additions and 1 deletions

View File

@@ -2601,3 +2601,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)
}