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: I8aa5aeeb2381ab840b2e1f12e12f9b59c706ca2a
diff --git a/tests/Android.mk b/tests/Android.mk
index f18d7d2..450a0b2 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -22,6 +22,7 @@
 
 LOCAL_PACKAGE_NAME := TvProviderTests
 LOCAL_JAVA_LIBRARIES := android.test.runner
+LOCAL_STATIC_JAVA_LIBRARIES := junit legacy-android-test
 LOCAL_INSTRUMENTATION_FOR := TvProvider
 
 include $(BUILD_PACKAGE)