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
Commit-Queue: Peter Wen <>
Reviewed-by: Sam Maier <>
Auto-Submit: Peter Wen <>
Cr-Original-Commit-Position: refs/heads/master@{#641590}
Cr-Mirrored-Commit: f3ca8671852c7c804aa5c59e75a12bca5e683e02
4 files changed