summaryrefslogtreecommitdiff
path: root/android/testing.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-08-23 12:06:11 -0700
committer Cole Faust <colefaust@google.com> 2024-09-16 15:10:05 -0700
commit55b56feb869f3217e3395473ae84e03673aea661 (patch)
treecee2d66159b53f627652cb3d81bf3bf637ec543b /android/testing.go
parent0bfceee17855cb2e47e512073d639f797fd31f7b (diff)
Add otherModuleProvider to ConfigurableEvaluatorContext
So that it can make decisisons based on a provider set by the base config mutator. Bug: 361816274 Test: m nothing Change-Id: I19e8a9e800dfabcd05740f9c0ed5db833c5b2377
Diffstat (limited to 'android/testing.go')
-rw-r--r--android/testing.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go
index 1ee6e4cdb..196b22e3e 100644
--- a/android/testing.go
+++ b/android/testing.go
@@ -1330,6 +1330,10 @@ func (ctx *panickingConfigAndErrorContext) HasMutatorFinished(mutatorName string
return ctx.ctx.HasMutatorFinished(mutatorName)
}
+func (ctx *panickingConfigAndErrorContext) otherModuleProvider(m blueprint.Module, p blueprint.AnyProviderKey) (any, bool) {
+ return ctx.ctx.otherModuleProvider(m, p)
+}
+
func PanickingConfigAndErrorContext(ctx *TestContext) ConfigurableEvaluatorContext {
return &panickingConfigAndErrorContext{
ctx: ctx,