diff options
author | 2024-08-23 12:06:11 -0700 | |
---|---|---|
committer | 2024-09-16 15:10:05 -0700 | |
commit | 55b56feb869f3217e3395473ae84e03673aea661 (patch) | |
tree | cee2d66159b53f627652cb3d81bf3bf637ec543b /android/testing.go | |
parent | 0bfceee17855cb2e47e512073d639f797fd31f7b (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.go | 4 |
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, |