diff options
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r-- | apex/apex_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index d6c714200..f58bf6cc5 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -7264,7 +7264,7 @@ func TestDexpreoptAccessDexFilesFromPrebuiltApex(t *testing.T) { }) } -func testApexPermittedPackagesRules(t *testing.T, errmsg, bp string, apexBootJars []string, rules []android.Rule) { +func testApexPermittedPackagesRules(t *testing.T, errmsg, bp string, bootJars []string, rules []android.Rule) { t.Helper() bp += ` apex_key { @@ -7289,11 +7289,11 @@ func testApexPermittedPackagesRules(t *testing.T, errmsg, bp string, apexBootJar PrepareForTestWithApexBuildComponents, android.PrepareForTestWithNeverallowRules(rules), android.FixtureModifyProductVariables(func(variables android.FixtureProductVariables) { - updatableBootJars := make([]string, 0, len(apexBootJars)) - for _, apexBootJar := range apexBootJars { - updatableBootJars = append(updatableBootJars, "myapex:"+apexBootJar) + apexBootJars := make([]string, 0, len(bootJars)) + for _, apexBootJar := range bootJars { + apexBootJars = append(apexBootJars, "myapex:"+apexBootJar) } - variables.UpdatableBootJars = android.CreateTestConfiguredJarList(updatableBootJars) + variables.ApexBootJars = android.CreateTestConfiguredJarList(apexBootJars) }), fs.AddToFixture(), ). |