summaryrefslogtreecommitdiff
path: root/cc/testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/testing.go')
-rw-r--r--cc/testing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/testing.go b/cc/testing.go
index 388a9ce54..5a311f4b9 100644
--- a/cc/testing.go
+++ b/cc/testing.go
@@ -545,8 +545,8 @@ func TestConfig(buildDir string, os android.OsType, env map[string]string,
return config
}
-func CreateTestContext() *android.TestContext {
- ctx := android.NewTestArchContext()
+func CreateTestContext(config android.Config) *android.TestContext {
+ ctx := android.NewTestArchContext(config)
ctx.RegisterModuleType("cc_fuzz", FuzzFactory)
ctx.RegisterModuleType("cc_test", TestFactory)
ctx.RegisterModuleType("cc_test_library", TestLibraryFactory)