summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2024-08-13 15:56:16 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-08-13 15:56:16 +0000
commit246b43049c88572de399648718f70a28d3b245ba (patch)
treed35bda386e8cc8f0e73cc9e3c883706c975dfe17 /java/testing.go
parentf20696e112ee6d06a9327a2381bd21dc387a87d0 (diff)
parent663e4508dc4fe228696ede997d5fca24e4c1431e (diff)
Merge "Merge SingletonProviderContext with OtherModuleProviderContext" into main
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/testing.go b/java/testing.go
index a99baf8a2..e1bf5376e 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -632,7 +632,7 @@ func CheckPlatformBootclasspathModules(t *testing.T, result *android.TestResult,
func CheckClasspathFragmentProtoContentInfoProvider(t *testing.T, result *android.TestResult, generated bool, contents, outputFilename, installDir string) {
t.Helper()
p := result.Module("platform-bootclasspath", "android_common").(*platformBootclasspathModule)
- info, _ := android.SingletonModuleProvider(result, p, ClasspathFragmentProtoContentInfoProvider)
+ info, _ := android.OtherModuleProvider(result, p, ClasspathFragmentProtoContentInfoProvider)
android.AssertBoolEquals(t, "classpath proto generated", generated, info.ClasspathFragmentProtoGenerated)
android.AssertStringEquals(t, "classpath proto contents", contents, info.ClasspathFragmentProtoContents.String())
@@ -652,7 +652,7 @@ func ApexNamePairsFromModules(ctx *android.TestContext, modules []android.Module
func apexNamePairFromModule(ctx *android.TestContext, module android.Module) string {
name := module.Name()
var apex string
- apexInfo, _ := android.SingletonModuleProvider(ctx, module, android.ApexInfoProvider)
+ apexInfo, _ := android.OtherModuleProvider(ctx, module, android.ApexInfoProvider)
if apexInfo.IsForPlatform() {
apex = "platform"
} else {