summaryrefslogtreecommitdiff
path: root/aidl_library
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-12-14 14:46:23 -0800
committer Colin Cross <ccross@android.com> 2023-12-14 16:12:22 -0800
commit5a37718c956b1bfbda5e236c0fe50f08661a81de (patch)
treef8a6bddfb1fc02a663884ec9d500a831607572be /aidl_library
parent313aa5475f50024da74e709a55f840eb7b263153 (diff)
Convert ModuleProvder to generic providers API
Convert all of the callers of ModuleProvider/ModuleHasProvider to use the type-safe android.SingletonModuleProvider API. Bug: 316410648 Test: builds Change-Id: I6f11638546b64749e451cebbf33140248dc1d193
Diffstat (limited to 'aidl_library')
-rw-r--r--aidl_library/aidl_library_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/aidl_library/aidl_library_test.go b/aidl_library/aidl_library_test.go
index 020562904..01eab0eaf 100644
--- a/aidl_library/aidl_library_test.go
+++ b/aidl_library/aidl_library_test.go
@@ -46,7 +46,7 @@ func TestAidlLibrary(t *testing.T) {
).RunTest(t).TestContext
foo := ctx.ModuleForTests("foo", "").Module().(*AidlLibrary)
- actualInfo := ctx.ModuleProvider(foo, AidlLibraryProvider).(AidlLibraryInfo)
+ actualInfo, _ := android.SingletonModuleProvider(ctx, foo, AidlLibraryProvider)
android.AssertArrayString(
t,
@@ -95,7 +95,7 @@ func TestAidlLibraryWithoutStripImportPrefix(t *testing.T) {
).RunTest(t).TestContext
foo := ctx.ModuleForTests("foo", "").Module().(*AidlLibrary)
- actualInfo := ctx.ModuleProvider(foo, AidlLibraryProvider).(AidlLibraryInfo)
+ actualInfo, _ := android.SingletonModuleProvider(ctx, foo, AidlLibraryProvider)
android.AssertArrayString(
t,