summaryrefslogtreecommitdiff
path: root/apex/classpath_element_test.go
diff options
context:
space:
mode:
author satayev <satayev@google.com> 2021-08-06 17:49:46 +0100
committer satayev <satayev@google.com> 2021-08-10 15:35:52 +0100
commitabcd59731e0f88b988b8e97562c9ecd116802353 (patch)
treec95c937ede641f37051c41d2177b83243c155179 /apex/classpath_element_test.go
parent47c456228c7f79bccea810db1e5f8fda0a77610c (diff)
Fix tests to use correct fixtures for configuring (Apex)BootJars.
This is in preparation to r.android.com/1740313 where setting correct variables would be enforced (i.e. apex and non-apex boot jars must be in config.ApexBootJars and config.BootJars correspondingly). Bug: 191369843 Test: m nothing Change-Id: Ic86680c1f7af53d229083b2cc58beb3ceccb4b6a
Diffstat (limited to 'apex/classpath_element_test.go')
-rw-r--r--apex/classpath_element_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/apex/classpath_element_test.go b/apex/classpath_element_test.go
index 0193127b8..e2d846559 100644
--- a/apex/classpath_element_test.go
+++ b/apex/classpath_element_test.go
@@ -58,6 +58,7 @@ func TestCreateClasspathElements(t *testing.T) {
}),
java.PrepareForTestWithJavaSdkLibraryFiles,
java.FixtureWithLastReleaseApis("foo", "othersdklibrary"),
+ java.FixtureConfigureApexBootJars("myapex:bar"),
android.FixtureWithRootAndroidBp(`
apex {
name: "com.android.art",
@@ -79,6 +80,7 @@ func TestCreateClasspathElements(t *testing.T) {
bootclasspath_fragment {
name: "art-bootclasspath-fragment",
+ image_name: "art",
apex_available: [
"com.android.art",
],
@@ -193,6 +195,10 @@ func TestCreateClasspathElements(t *testing.T) {
apex: "com.android.art",
module: "art-bootclasspath-fragment",
},
+ {
+ apex: "myapex",
+ module: "mybootclasspath-fragment",
+ },
],
}
`),