Java test code clean-up
Remove unused parameters and make testJava return the config. Test: Ran all java tests. Change-Id: Iaa123f3fd93188e2f55452b887e1d340429cc710
This commit is contained in:
@@ -282,7 +282,7 @@ func TestClasspath(t *testing.T) {
|
||||
if testcase.pdk {
|
||||
config.TestProductVariables.Pdk = proptools.BoolPtr(true)
|
||||
}
|
||||
ctx := testContext(config, bp, nil)
|
||||
ctx := testContext(bp, nil)
|
||||
run(t, ctx, config)
|
||||
|
||||
checkClasspath(t, ctx)
|
||||
@@ -309,7 +309,7 @@ func TestClasspath(t *testing.T) {
|
||||
if testcase.pdk {
|
||||
config.TestProductVariables.Pdk = proptools.BoolPtr(true)
|
||||
}
|
||||
ctx := testContext(config, bp, nil)
|
||||
ctx := testContext(bp, nil)
|
||||
run(t, ctx, config)
|
||||
|
||||
javac := ctx.ModuleForTests("foo", variant).Rule("javac")
|
||||
@@ -335,7 +335,7 @@ func TestClasspath(t *testing.T) {
|
||||
if testcase.pdk {
|
||||
config.TestProductVariables.Pdk = proptools.BoolPtr(true)
|
||||
}
|
||||
ctx := testContext(config, bp, nil)
|
||||
ctx := testContext(bp, nil)
|
||||
run(t, ctx, config)
|
||||
|
||||
checkClasspath(t, ctx)
|
||||
|
Reference in New Issue
Block a user