diff options
| author | 2024-09-26 22:04:11 +0000 | |
|---|---|---|
| committer | 2024-09-26 22:04:11 +0000 | |
| commit | b27645a49c120447d8c23ee4a48fe280a8bf94a6 (patch) | |
| tree | a1e7e12d22728916781cbf6dec88681992cd1001 /sdk/java_sdk_test.go | |
| parent | 4785b788086dd90083a4bfad9a30b2a8743911bf (diff) | |
| parent | 98e9ac6075d23ac9e06e87bf881bebccbef4505c (diff) | |
Merge "Remove the SdkLibraryDependency interface" into main
Diffstat (limited to 'sdk/java_sdk_test.go')
| -rw-r--r-- | sdk/java_sdk_test.go | 5 |
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() } |