diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-07-31 19:32:11 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-07-31 19:32:11 +0000 |
commit | 703ea006e002d0d8d7cfb0039af20c1e8debc85e (patch) | |
tree | 23bb30a7bdbe33c071219c18d95f1138309aef37 /java/java_test.go | |
parent | 0659a96a3888490680e08effb6c84a0c2c871ddc (diff) | |
parent | 1e2ee12ff461624aae231a195476a81874fa9a58 (diff) |
Merge "Default to not creating stubs for droiddoc"
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/java_test.go b/java/java_test.go index 41f57f2df..a3c78540f 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -1109,8 +1109,13 @@ func TestDroiddoc(t *testing.T) { "bar-doc/a.java": nil, "bar-doc/b.java": nil, }) + barDocModule := ctx.ModuleForTests("bar-doc", "android_common") + barDoc := barDocModule.Rule("javadoc") + notExpected := " -stubs " + if strings.Contains(barDoc.RuleParams.Command, notExpected) { + t.Errorf("bar-doc command contains flag %q to create stubs, but should not", notExpected) + } - barDoc := ctx.ModuleForTests("bar-doc", "android_common").Rule("javadoc") var javaSrcs []string for _, i := range barDoc.Inputs { javaSrcs = append(javaSrcs, i.Base()) @@ -1119,7 +1124,7 @@ func TestDroiddoc(t *testing.T) { t.Errorf("inputs of bar-doc must be []string{\"a.java\"}, but was %#v.", javaSrcs) } - aidl := ctx.ModuleForTests("bar-doc", "android_common").Rule("aidl") + aidl := barDocModule.Rule("aidl") if g, w := barDoc.Implicits.Strings(), aidl.Output.String(); !inList(w, g) { t.Errorf("implicits of bar-doc must contain %q, but was %q.", w, g) } |