diff options
Diffstat (limited to 'android/testing.go')
-rw-r--r-- | android/testing.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go index 0ec5af58..ab3c69cf 100644 --- a/android/testing.go +++ b/android/testing.go @@ -369,3 +369,14 @@ func FailIfNoMatchingErrors(t *testing.T, pattern string, errs []error) { } } } + +func AndroidMkEntriesForTest(t *testing.T, config Config, bpPath string, mod blueprint.Module) AndroidMkEntries { + var p AndroidMkEntriesProvider + var ok bool + if p, ok = mod.(AndroidMkEntriesProvider); !ok { + t.Errorf("module does not implmement AndroidMkEntriesProvider: " + mod.Name()) + } + entries := p.AndroidMkEntries() + entries.fillInEntries(config, bpPath, mod) + return entries +} |