Use more inclusive language in dexpreopt/testing.go

Bug: 177892522
Test: m nothing
Change-Id: Idbb37485a573ddd25c4da48ab88f9c559fca5434
This commit is contained in:
Paul Duffin 2021-03-23 14:47:18 +00:00
parent b6535d329f
commit f8e3d8341a
1 changed files with 7 additions and 7 deletions

View File

@ -18,29 +18,29 @@ import (
"android/soong/android" "android/soong/android"
) )
type dummyToolBinary struct { type fakeToolBinary struct {
android.ModuleBase android.ModuleBase
} }
func (m *dummyToolBinary) GenerateAndroidBuildActions(ctx android.ModuleContext) {} func (m *fakeToolBinary) GenerateAndroidBuildActions(ctx android.ModuleContext) {}
func (m *dummyToolBinary) HostToolPath() android.OptionalPath { func (m *fakeToolBinary) HostToolPath() android.OptionalPath {
return android.OptionalPathForPath(android.PathForTesting("dex2oat")) return android.OptionalPathForPath(android.PathForTesting("dex2oat"))
} }
func dummyToolBinaryFactory() android.Module { func fakeToolBinaryFactory() android.Module {
module := &dummyToolBinary{} module := &fakeToolBinary{}
android.InitAndroidArchModule(module, android.HostSupported, android.MultilibFirst) android.InitAndroidArchModule(module, android.HostSupported, android.MultilibFirst)
return module return module
} }
func RegisterToolModulesForTest(ctx android.RegistrationContext) { func RegisterToolModulesForTest(ctx android.RegistrationContext) {
ctx.RegisterModuleType("dummy_tool_binary", dummyToolBinaryFactory) ctx.RegisterModuleType("fake_tool_binary", fakeToolBinaryFactory)
} }
func BpToolModulesForTest() string { func BpToolModulesForTest() string {
return ` return `
dummy_tool_binary { fake_tool_binary {
name: "dex2oatd", name: "dex2oatd",
} }
` `