Convert coverageMutator to a TransitionMutator

Convert coverageMutator to a TransitionMutator as a step towards
variants-on-demand.

Bug: 319288033
Test: coverage_test.go
Test: treehugger coverage builds
Change-Id: Ic50c0040dea8b42c36b5d784221daa00b7b0d379
This commit is contained in:
Colin Cross
2024-01-19 15:41:48 -08:00
parent 4aa3e0ab81
commit f5f4ad3db6
7 changed files with 77 additions and 34 deletions

View File

@@ -1084,7 +1084,7 @@ func (j *JavaTestImport) InstallInTestcases() bool {
return true
}
func (j *TestHost) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool {
func (j *TestHost) IsNativeCoverageNeeded(ctx android.IncomingTransitionContext) bool {
return ctx.DeviceConfig().NativeCoverageEnabled()
}