Merge "Make PrebuiltEtcHostFactory public."

This commit is contained in:
Jaewoong Jung 2019-02-11 16:22:13 +00:00 committed by Gerrit Code Review
commit 0dcfee56b8
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ import (
func init() {
RegisterModuleType("prebuilt_etc", PrebuiltEtcFactory)
RegisterModuleType("prebuilt_etc_host", prebuiltEtcHostFactory)
RegisterModuleType("prebuilt_etc_host", PrebuiltEtcHostFactory)
PreDepsMutators(func(ctx RegisterMutatorsContext) {
ctx.BottomUp("prebuilt_etc", prebuiltEtcMutator).Parallel()
@ -182,7 +182,7 @@ func PrebuiltEtcFactory() Module {
return module
}
func prebuiltEtcHostFactory() Module {
func PrebuiltEtcHostFactory() Module {
module := &PrebuiltEtc{}
InitPrebuiltEtcModule(module)
// This module is host-only

View file

@ -28,7 +28,7 @@ func testPrebuiltEtc(t *testing.T, bp string) *TestContext {
defer tearDown(buildDir)
ctx := NewTestArchContext()
ctx.RegisterModuleType("prebuilt_etc", ModuleFactoryAdaptor(PrebuiltEtcFactory))
ctx.RegisterModuleType("prebuilt_etc_host", ModuleFactoryAdaptor(prebuiltEtcHostFactory))
ctx.RegisterModuleType("prebuilt_etc_host", ModuleFactoryAdaptor(PrebuiltEtcHostFactory))
ctx.PreDepsMutators(func(ctx RegisterMutatorsContext) {
ctx.BottomUp("prebuilt_etc", prebuiltEtcMutator).Parallel()
})