diff options
Diffstat (limited to 'cc/testing.go')
-rw-r--r-- | cc/testing.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/testing.go b/cc/testing.go index a0b163498..11a5e3bd9 100644 --- a/cc/testing.go +++ b/cc/testing.go @@ -239,6 +239,7 @@ func CreateTestContext(bp string, fs map[string][]byte, os android.OsType) *android.TestContext { ctx := android.NewTestArchContext() + ctx.RegisterModuleType("cc_defaults", android.ModuleFactoryAdaptor(defaultsFactory)) ctx.RegisterModuleType("cc_binary", android.ModuleFactoryAdaptor(BinaryFactory)) ctx.RegisterModuleType("cc_binary_host", android.ModuleFactoryAdaptor(binaryHostFactory)) ctx.RegisterModuleType("cc_fuzz", android.ModuleFactoryAdaptor(FuzzFactory)) @@ -264,6 +265,7 @@ func CreateTestContext(bp string, fs map[string][]byte, ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) { ctx.TopDown("double_loadable", checkDoubleLoadableLibraries).Parallel() }) + ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators) ctx.RegisterSingletonType("vndk-snapshot", android.SingletonFactoryAdaptor(VndkSnapshotSingleton)) // add some modules that are required by the compiler and/or linker @@ -274,6 +276,7 @@ func CreateTestContext(bp string, fs map[string][]byte, "foo.c": nil, "foo.lds": nil, "bar.c": nil, + "baz.c": nil, "baz.o": nil, "a.proto": nil, "b.aidl": nil, |