Android: Update android_deps for test targets

- Add testonly targets through testCompile dependencies
- Plumb through testOnly and licenseAndroidCompatible
- Add logic allowing generated targets to depend on existing third_party
  libs (junit and hamcrest).

Bug: 913062
Change-Id: I9edc1f291f4979861370cf98bc311fd73dbb5fb9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1524401
Commit-Queue: Peter Wen <wnwen@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#641590}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f3ca8671852c7c804aa5c59e75a12bca5e683e02
4 files changed