summaryrefslogtreecommitdiff
path: root/java/droidstubs_test.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2024-01-09 06:01:34 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-01-09 06:01:34 +0000
commit9d800859f4918df78cf2ee524edb51c84735cf11 (patch)
tree2d871d542f0f7abe340b8c109af3687dcabbfc48 /java/droidstubs_test.go
parent0f5162161d14a07b6132c33fef8d35d937cbd514 (diff)
parent3c89f047778863e2701cc7de7562f99acb253152 (diff)
Merge "Generate "exportable" stubs in droidstubs" into main
Diffstat (limited to 'java/droidstubs_test.go')
-rw-r--r--java/droidstubs_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/droidstubs_test.go b/java/droidstubs_test.go
index 5544890af..379e2403f 100644
--- a/java/droidstubs_test.go
+++ b/java/droidstubs_test.go
@@ -437,4 +437,12 @@ func TestAconfigDeclarations(t *testing.T) {
m := result.ModuleForTests("foo", "android_common")
android.AssertStringDoesContain(t, "foo generates revert annotations file",
strings.Join(m.AllOutputs(), ""), "revert-annotations-exportable.txt")
+
+ // revert-annotations.txt passed to exportable stubs generation metalava command
+ manifest := m.Output("metalava_exportable.sbox.textproto")
+ cmdline := String(android.RuleBuilderSboxProtoForTests(t, result.TestContext, manifest).Commands[0].Command)
+ android.AssertStringDoesContain(t, "flagged api hide command not included", cmdline, "revert-annotations-exportable.txt")
+
+ android.AssertStringDoesContain(t, "foo generates exportable stubs jar",
+ strings.Join(m.AllOutputs(), ""), "exportable/foo-stubs.srcjar")
}