summaryrefslogtreecommitdiff
path: root/sdk/testing.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-03-09 22:59:28 +0000
committer Paul Duffin <paulduffin@google.com> 2021-03-09 23:03:45 +0000
commit6d9108f0473aa7e5726cb232ede83c1a2016e5d6 (patch)
tree66be3d7f5de7436318a4610e6b901e6c0715fdc5 /sdk/testing.go
parent667893c657998f16d4058beb5696a2d9fc0540ce (diff)
Extract sdk registration code into function for reuse
Test: m nothing Change-Id: I0d0e36324808831deb9a32f07ca3696125703873
Diffstat (limited to 'sdk/testing.go')
-rw-r--r--sdk/testing.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/sdk/testing.go b/sdk/testing.go
index 7a2540a27..4e31b0463 100644
--- a/sdk/testing.go
+++ b/sdk/testing.go
@@ -122,12 +122,8 @@ func testSdkContext(bp string, fs map[string][]byte, extraOsTypes []android.OsTy
ctx.PostDepsMutators(apex.RegisterPostDepsMutators)
// from this package
- ctx.RegisterModuleType("sdk", SdkModuleFactory)
- ctx.RegisterModuleType("sdk_snapshot", SnapshotModuleFactory)
- ctx.RegisterModuleType("module_exports", ModuleExportsFactory)
- ctx.RegisterModuleType("module_exports_snapshot", ModuleExportsSnapshotsFactory)
- ctx.PreDepsMutators(RegisterPreDepsMutators)
- ctx.PostDepsMutators(RegisterPostDepsMutators)
+ registerModuleExportsBuildComponents(ctx)
+ registerSdkBuildComponents(ctx)
ctx.Register()