Merge "Add test preparer for phony module types" into main

This commit is contained in:
Jiyong Park 2024-03-26 23:24:19 +00:00 committed by Gerrit Code Review
commit 8399758b97

View file

@ -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