Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8399758b authored by Jiyong Park's avatar Jiyong Park Committed by Gerrit Code Review
Browse files

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

parents 58d9063b 92b8e8f1
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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