diff options
author | Yuexi Ma <yuexima@google.com> | 2021-03-04 13:47:56 -0800 |
---|---|---|
committer | Yuexi Ma <yuexima@google.com> | 2021-03-16 15:57:59 -0700 |
commit | 627263fecedf59eb725b669f2d98439d3c3b75bf (patch) | |
tree | f74fb9f3c21c4e75cde33f2d02afa441ab2ce8e3 /java/java_test.go | |
parent | 632f080f8830e2ded22d2e65fdf69cbbe6df40d8 (diff) |
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
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 e7776c35d..30586eceb 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -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) +} |