summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-09-26 22:04:11 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-09-26 22:04:11 +0000
commitb27645a49c120447d8c23ee4a48fe280a8bf94a6 (patch)
treea1e7e12d22728916781cbf6dec88681992cd1001 /sdk/java_sdk_test.go
parent4785b788086dd90083a4bfad9a30b2a8743911bf (diff)
parent98e9ac6075d23ac9e06e87bf881bebccbef4505c (diff)
Merge "Remove the SdkLibraryDependency interface" into main
Diffstat (limited to 'sdk/java_sdk_test.go')
-rw-r--r--sdk/java_sdk_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/sdk/java_sdk_test.go b/sdk/java_sdk_test.go
index 09a7c9e8c..15e13dbcb 100644
--- a/sdk/java_sdk_test.go
+++ b/sdk/java_sdk_test.go
@@ -1360,10 +1360,9 @@ java_sdk_library_import {
}
`),
snapshotTestChecker(checkSnapshotWithSourcePreferred, func(t *testing.T, result *android.TestResult) {
- ctx := android.ModuleInstallPathContextForTesting(result.Config)
dexJarBuildPath := func(name string, kind android.SdkKind) string {
- dep := result.Module(name, "android_common").(java.SdkLibraryDependency)
- path := dep.SdkApiExportableStubDexJar(ctx, kind).Path()
+ sdkLibInfo, _ := android.OtherModuleProvider(result.TestContext.OtherModuleProviderAdaptor(), result.Module(name, "android_common"), java.SdkLibraryInfoProvider)
+ path := sdkLibInfo.ExportableStubDexJarPaths[kind].Path()
return path.RelativeToTop().String()
}