diff options
author | Yuexi Ma <yuexima@google.com> | 2021-03-17 01:40:51 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-03-17 01:40:51 +0000 |
commit | b96a04ba49c789eb9b5001f0fb08c9e718532a6a (patch) | |
tree | b9fc290d90aa6e85dc820c26daf9ad088b969768 /java/java_test.go | |
parent | eb32d6c2a6f5234e8fe23e25acd1f9edebc03e9d (diff) | |
parent | 627263fecedf59eb725b669f2d98439d3c3b75bf (diff) |
Merge "Export a few utility methods"
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go index 1c2ed2e57..2eb724185 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -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) +} |