Collect annotations for JUnit3 tests.

Necessary to support test annotation filtering in Android.

Cherry-pick of Id4c2923bf3f0aff0847dc8b4705a502c7540d80d

Bug: 9567893
Change-Id: Icebde30f7e55f41811b72eb00c355dfea274830d
1 file changed