diff options
author | Jiyong Park <jiyong@google.com> | 2024-03-26 10:47:18 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2024-03-26 10:47:18 +0900 |
commit | 92b8e8f1bbf0d3425d1aa9bb010a3e40bbb5854b (patch) | |
tree | f87879d0af167c2fea4cfdbf9f69ce520a6d0cdc | |
parent | 078188774f88ff13d3c02a1a46dc5f9034f27aff (diff) | |
download | soong-92b8e8f1bbf0d3425d1aa9bb010a3e40bbb5854b.tar.gz |
Add test preparer for phony module types
... so that other tests can use the module type
Bug: N/A
Test: N/A (see the next change)
Change-Id: Ie71e4c67a5615809784c27e9834f7d818a4b649d
-rw-r--r-- | phony/phony.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/phony/phony.go b/phony/phony.go index b8dbd00d0..68fbf48d0 100644 --- a/phony/phony.go +++ b/phony/phony.go @@ -23,10 +23,16 @@ import ( ) func init() { - android.RegisterModuleType("phony", PhonyFactory) - android.RegisterModuleType("phony_rule", PhonyRuleFactory) + registerPhonyModuleTypes(android.InitRegistrationContext) } +func registerPhonyModuleTypes(ctx android.RegistrationContext) { + ctx.RegisterModuleType("phony", PhonyFactory) + ctx.RegisterModuleType("phony_rule", PhonyRuleFactory) +} + +var PrepareForTestWithPhony = android.FixtureRegisterWithContext(registerPhonyModuleTypes) + type phony struct { android.ModuleBase requiredModuleNames []string |