summaryrefslogtreecommitdiff
path: root/android/testing.go
diff options
context:
space:
mode:
author Liz Kammer <eakammer@google.com> 2022-10-31 14:44:28 -0400
committer Liz Kammer <eakammer@google.com> 2022-11-22 11:46:34 -0500
commit92c725994f61e54090a8a3db578364d67142e24b (patch)
treeadf33bb682a924d517797a4548703151f3a02559 /android/testing.go
parentfd8a49fb9dc5e392e049290f67d39f1ee760c054 (diff)
Extend sanitize_test.go
Test: go test soong cc tests Change-Id: I63fe74fb837e25f63074fb918a573f8b421562f1
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 8fcf4409b..29af71fbc 100644
--- a/android/testing.go
+++ b/android/testing.go
@@ -203,6 +203,10 @@ func (ctx *TestContext) HardCodedPreArchMutators(f RegisterMutatorFunc) {
ctx.PreArchMutators(f)
}
+func (ctx *TestContext) ModuleProvider(m blueprint.Module, p blueprint.ProviderKey) interface{} {
+ return ctx.Context.ModuleProvider(m, p)
+}
+
func (ctx *TestContext) PreDepsMutators(f RegisterMutatorFunc) {
ctx.preDeps = append(ctx.preDeps, f)
}