diff options
| author | 2021-09-24 09:32:24 +0000 | |
|---|---|---|
| committer | 2021-09-24 09:32:24 +0000 | |
| commit | cf6bf37d0448919e752c3068a4c47adde42dc7f8 (patch) | |
| tree | 72f81e463e1992b304c06aaf7adba43e0b54fff1 /java/java_test.go | |
| parent | e1bb74e72445557e4dbdcc321072f15a45b5e005 (diff) | |
| parent | 4482560cc73f16f09eecda42751cf2f8dc72e7de (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/java_test.go')
| -rw-r--r-- | java/java_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/java_test.go b/java/java_test.go index 8bb017f0b..bc9b40964 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -600,8 +600,8 @@ func TestPrebuilts(t *testing.T) { } barDexJar := barModule.Module().(*Import).DexJarBuildPath() - if barDexJar != nil { - t.Errorf("bar dex jar build path expected to be nil, got %q", barDexJar) + if barDexJar.IsSet() { + t.Errorf("bar dex jar build path expected to be set, got %s", barDexJar) } if !strings.Contains(javac.Args["classpath"], sdklibStubsJar.String()) { @@ -612,7 +612,7 @@ func TestPrebuilts(t *testing.T) { t.Errorf("foo combineJar inputs %v does not contain %q", combineJar.Inputs, bazJar.String()) } - bazDexJar := bazModule.Module().(*Import).DexJarBuildPath() + bazDexJar := bazModule.Module().(*Import).DexJarBuildPath().Path() expectedDexJar := "out/soong/.intermediates/baz/android_common/dex/baz.jar" android.AssertPathRelativeToTopEquals(t, "baz dex jar build path", expectedDexJar, bazDexJar) |