summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-11-14 05:58:58 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-11-14 05:58:58 +0000
commitceed6be00d486bd068a82342b80997309ed26cd3 (patch)
treeef78eafab922cbe1a4ceded6201f23eab8d11bf9 /rust/testing.go
parent33e7f6a0cadbb09732405dfc33c4fac431fba0ca (diff)
parentae8600b507416192f5134dfc068cd0eea4c4dc9e (diff)
Merge "Pass Config to NewTestContext instead of ctx.Register"
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/testing.go b/rust/testing.go
index 40015663a..66877a907 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -127,8 +127,8 @@ func GatherRequiredDepsForTest() string {
return bp
}
-func CreateTestContext() *android.TestContext {
- ctx := android.NewTestArchContext()
+func CreateTestContext(config android.Config) *android.TestContext {
+ ctx := android.NewTestArchContext(config)
android.RegisterPrebuiltMutators(ctx)
ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators)
cc.RegisterRequiredBuildComponentsForTest(ctx)