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
This commit is contained in:
@@ -23,10 +23,16 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
android.RegisterModuleType("phony", PhonyFactory)
|
registerPhonyModuleTypes(android.InitRegistrationContext)
|
||||||
android.RegisterModuleType("phony_rule", PhonyRuleFactory)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func registerPhonyModuleTypes(ctx android.RegistrationContext) {
|
||||||
|
ctx.RegisterModuleType("phony", PhonyFactory)
|
||||||
|
ctx.RegisterModuleType("phony_rule", PhonyRuleFactory)
|
||||||
|
}
|
||||||
|
|
||||||
|
var PrepareForTestWithPhony = android.FixtureRegisterWithContext(registerPhonyModuleTypes)
|
||||||
|
|
||||||
type phony struct {
|
type phony struct {
|
||||||
android.ModuleBase
|
android.ModuleBase
|
||||||
requiredModuleNames []string
|
requiredModuleNames []string
|
||||||
|
Reference in New Issue
Block a user