From f8e3d8341aec34c42a600ad5c9b13e0f41215f53 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Tue, 23 Mar 2021 14:47:18 +0000 Subject: [PATCH] Use more inclusive language in dexpreopt/testing.go Bug: 177892522 Test: m nothing Change-Id: Idbb37485a573ddd25c4da48ab88f9c559fca5434 --- dexpreopt/testing.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dexpreopt/testing.go b/dexpreopt/testing.go index 8e90295b1..8d0fb622d 100644 --- a/dexpreopt/testing.go +++ b/dexpreopt/testing.go @@ -18,29 +18,29 @@ import ( "android/soong/android" ) -type dummyToolBinary struct { +type fakeToolBinary struct { 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")) } -func dummyToolBinaryFactory() android.Module { - module := &dummyToolBinary{} +func fakeToolBinaryFactory() android.Module { + module := &fakeToolBinary{} android.InitAndroidArchModule(module, android.HostSupported, android.MultilibFirst) return module } func RegisterToolModulesForTest(ctx android.RegistrationContext) { - ctx.RegisterModuleType("dummy_tool_binary", dummyToolBinaryFactory) + ctx.RegisterModuleType("fake_tool_binary", fakeToolBinaryFactory) } func BpToolModulesForTest() string { return ` - dummy_tool_binary { + fake_tool_binary { name: "dex2oatd", } `