Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.
Bug: 30188076
Test: make checkbuild
Change-Id: I1f92750773e555cd3f09294e27a21f45888c8ea5
diff --git a/tests/Android.mk b/tests/Android.mk
index 2c81c5d..8db8e4f 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -6,7 +6,8 @@
LOCAL_STATIC_JAVA_LIBRARIES := \
mockito-target-minus-junit4 \
- android-support-test
+ android-support-test \
+ legacy-android-test
LOCAL_JAVA_LIBRARIES := android.test.runner