Fix robolectric tests with sdk_version and prebuilt dependencies

Add deviceProperties to robolectric tests so they can set
sdk_version.  Use Dependency.BaseModuleName() instead of
ctx.OtherModuleName() to get the dependency name to pass to Make
to support prebuilts in libs, which may have a "prebuilt_" prefix
in ctx.OtherModuleName().

Test: m RunLauncherRoboTests
Change-Id: I59a889bd6107b989f336b147d0eaccabef611894
This commit is contained in:
Colin Cross
2019-09-17 15:34:09 -07:00
parent 9c27df7d4d
commit e323f3cca3
2 changed files with 3 additions and 1 deletions

View File

@@ -398,6 +398,7 @@ type Dependency interface {
AidlIncludeDirs() android.Paths
ExportedSdkLibs() []string
SrcJarArgs() ([]string, android.Paths)
BaseModuleName() string
}
type SdkLibraryDependency interface {