Add TestingModule.VariablesForTestsRelativeToTop

Bug: 182885307
Test: m nothing
Change-Id: Id1265b07533f226965555e703fb9fa81aea4ec91
This commit is contained in:
Paul Duffin 2021-03-22 16:04:50 +00:00
parent 709e0e32c2
commit 97d8b40fec
1 changed files with 6 additions and 0 deletions

View File

@ -776,6 +776,12 @@ func (m TestingModule) Module() Module {
return m.module
}
// VariablesForTestsRelativeToTop returns a copy of the Module.VariablesForTests() with every value
// having any temporary build dir usages replaced with paths relative to a notional top.
func (m TestingModule) VariablesForTestsRelativeToTop() map[string]string {
return normalizeStringMapRelativeToTop(m.config, m.module.VariablesForTests())
}
// TestingSingleton is wrapper around an android.Singleton that provides methods to find information about individual
// ctx.Build parameters for verification in tests.
type TestingSingleton struct {