Merge SingletonProviderContext with OtherModuleProviderContext
Bug: 358425833 Test: CI Change-Id: I8e3f40dc3cfc5337008b419801f8e6bf2d48e8b2
This commit is contained in:
@@ -15,8 +15,9 @@
|
||||
package aidl_library
|
||||
|
||||
import (
|
||||
"android/soong/android"
|
||||
"testing"
|
||||
|
||||
"android/soong/android"
|
||||
)
|
||||
|
||||
func TestAidlLibrary(t *testing.T) {
|
||||
@@ -46,7 +47,7 @@ func TestAidlLibrary(t *testing.T) {
|
||||
).RunTest(t).TestContext
|
||||
|
||||
foo := ctx.ModuleForTests("foo", "").Module().(*AidlLibrary)
|
||||
actualInfo, _ := android.SingletonModuleProvider(ctx, foo, AidlLibraryProvider)
|
||||
actualInfo, _ := android.OtherModuleProvider(ctx, foo, AidlLibraryProvider)
|
||||
|
||||
android.AssertArrayString(
|
||||
t,
|
||||
@@ -95,7 +96,7 @@ func TestAidlLibraryWithoutStripImportPrefix(t *testing.T) {
|
||||
).RunTest(t).TestContext
|
||||
|
||||
foo := ctx.ModuleForTests("foo", "").Module().(*AidlLibrary)
|
||||
actualInfo, _ := android.SingletonModuleProvider(ctx, foo, AidlLibraryProvider)
|
||||
actualInfo, _ := android.OtherModuleProvider(ctx, foo, AidlLibraryProvider)
|
||||
|
||||
android.AssertArrayString(
|
||||
t,
|
||||
|
Reference in New Issue
Block a user