From d0890452e33f39daa71448e87324892e59c3d11b Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 17 Mar 2021 21:57:08 +0000 Subject: Add preparers for python Bug: 181070625 Test: m nothing Change-Id: I590ad62db6fd62719c83286780563cf6d55e3e17 --- python/test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'python/test.go') diff --git a/python/test.go b/python/test.go index b7cd4756a..6713189fd 100644 --- a/python/test.go +++ b/python/test.go @@ -22,8 +22,12 @@ import ( // This file contains the module types for building Python test. func init() { - android.RegisterModuleType("python_test_host", PythonTestHostFactory) - android.RegisterModuleType("python_test", PythonTestFactory) + registerPythonTestComponents(android.InitRegistrationContext) +} + +func registerPythonTestComponents(ctx android.RegistrationContext) { + ctx.RegisterModuleType("python_test_host", PythonTestHostFactory) + ctx.RegisterModuleType("python_test", PythonTestFactory) } // Test option struct. -- cgit v1.2.3-59-g8ed1b