diff options
Diffstat (limited to 'java/sdk_test.go')
-rw-r--r-- | java/sdk_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/sdk_test.go b/java/sdk_test.go index 028c4fe9a..e1ec41bdc 100644 --- a/java/sdk_test.go +++ b/java/sdk_test.go @@ -313,10 +313,10 @@ func TestClasspath(t *testing.T) { checkClasspath := func(t *testing.T, result *android.TestResult, isJava8 bool) { foo := result.ModuleForTests("foo", variant) - javac := foo.Rule("javac").RelativeToTop() + javac := foo.Rule("javac") var deps []string - aidl := foo.MaybeRule("aidl").RelativeToTop() + aidl := foo.MaybeRule("aidl") if aidl.Rule != nil { deps = append(deps, android.PathRelativeToTop(aidl.Output)) } @@ -376,7 +376,7 @@ func TestClasspath(t *testing.T) { checkClasspath(t, result, true /* isJava8 */) if testcase.host != android.Host { - aidl := result.ModuleForTests("foo", variant).Rule("aidl").RelativeToTop() + aidl := result.ModuleForTests("foo", variant).Rule("aidl") android.AssertStringDoesContain(t, "aidl command", aidl.RuleParams.Command, testcase.aidl+" -I.") } @@ -389,7 +389,7 @@ func TestClasspath(t *testing.T) { checkClasspath(t, result, false /* isJava8 */) if testcase.host != android.Host { - aidl := result.ModuleForTests("foo", variant).Rule("aidl").RelativeToTop() + aidl := result.ModuleForTests("foo", variant).Rule("aidl") android.AssertStringDoesContain(t, "aidl command", aidl.RuleParams.Command, testcase.aidl+" -I.") } |