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
This commit is contained in:
@@ -30,9 +30,7 @@ func TestCodeMetadata(t *testing.T) {
|
||||
).Module().(*soongTesting.CodeMetadataModule)
|
||||
|
||||
// Check that the provider has the right contents
|
||||
data := result.ModuleProvider(
|
||||
module, soongTesting.CodeMetadataProviderKey,
|
||||
).(soongTesting.CodeMetadataProviderData)
|
||||
data, _ := android.SingletonModuleProvider(result, module, soongTesting.CodeMetadataProviderKey)
|
||||
if !strings.HasSuffix(
|
||||
data.IntermediatePath.String(), "/intermediateCodeMetadata.pb",
|
||||
) {
|
||||
|
Reference in New Issue
Block a user