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
Merged-In: Ie8aeb9206c38685abe3b72a0b80bd0faa5ddb9ce
Change-Id: Ia0ffc51aebb57a9384348e31c047f778bd14db94
1 file changed