summaryrefslogtreecommitdiff
path: root/java/robolectric.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-10-24 15:59:01 -0700
committer Cole Faust <colefaust@google.com> 2024-10-24 16:02:48 -0700
commita8bf946a22d5e7022c5fd2c748da226f0ee0a16e (patch)
tree03e721f8e60976b1e1508764e701b123d9b61e72 /java/robolectric.go
parent17d5d891249cb15ac4dc87a4ee088cae2864789e (diff)
Add device_first_vendor(_shared)_data
There are some host tests in internal that rely on the vendor variation of other modules, that they include in their `data` property. Add explicit properties for these dependencies so that they don't rely on the 1-variant fallback. Bug: 372091092 Test: m nothing Change-Id: I51a50db2a06fdd3f885ac21f3ad3ce15386feb53
Diffstat (limited to 'java/robolectric.go')
-rw-r--r--java/robolectric.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/robolectric.go b/java/robolectric.go
index 5f46267f9..37cac2c74 100644
--- a/java/robolectric.go
+++ b/java/robolectric.go
@@ -151,6 +151,8 @@ func (r *robolectricTest) GenerateAndroidBuildActions(ctx android.ModuleContext)
r.data = append(r.data, android.PathsForModuleSrc(ctx, r.testProperties.Device_common_data)...)
r.data = append(r.data, android.PathsForModuleSrc(ctx, r.testProperties.Device_first_data)...)
r.data = append(r.data, android.PathsForModuleSrc(ctx, r.testProperties.Device_first_prefer32_data)...)
+ r.data = append(r.data, android.PathsForModuleSrc(ctx, r.testProperties.Device_first_vendor_data)...)
+ r.data = append(r.data, android.PathsForModuleSrc(ctx, r.testProperties.Device_first_vendor_shared_data)...)
var ok bool
var instrumentedApp *AndroidApp