summaryrefslogtreecommitdiff
path: root/java/hiddenapi_singleton_test.go
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2021-09-24 09:32:24 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-09-24 09:32:24 +0000
commitcf6bf37d0448919e752c3068a4c47adde42dc7f8 (patch)
tree72f81e463e1992b304c06aaf7adba43e0b54fff1 /java/hiddenapi_singleton_test.go
parente1bb74e72445557e4dbdcc321072f15a45b5e005 (diff)
parent4482560cc73f16f09eecda42751cf2f8dc72e7de (diff)
Merge changes I957f3df8,I68986dcc
* changes: Consolidate the code to resolve a deapexer module dependency. Propagate the dex jar path as an OptionalPath which is either valid or invalid with a message.
Diffstat (limited to 'java/hiddenapi_singleton_test.go')
-rw-r--r--java/hiddenapi_singleton_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/hiddenapi_singleton_test.go b/java/hiddenapi_singleton_test.go
index dcd363c2c..75b7bb7c8 100644
--- a/java/hiddenapi_singleton_test.go
+++ b/java/hiddenapi_singleton_test.go
@@ -20,6 +20,7 @@ import (
"testing"
"android/soong/android"
+
"github.com/google/blueprint/proptools"
)
@@ -306,7 +307,7 @@ func TestHiddenAPIEncoding_JavaSdkLibrary(t *testing.T) {
android.AssertStringEquals(t, "encode embedded java_library", unencodedDexJar, actualUnencodedDexJar.String())
// Make sure that the encoded dex jar is the exported one.
- exportedDexJar := moduleForTests.Module().(UsesLibraryDependency).DexJarBuildPath()
+ exportedDexJar := moduleForTests.Module().(UsesLibraryDependency).DexJarBuildPath().Path()
android.AssertPathRelativeToTopEquals(t, "encode embedded java_library", encodedDexJar, exportedDexJar)
}