Add new GN junit binary template and new GYP java binary template.
commit1ad64324d470c43b29854282d5ad5b1ff75dfc6c
authormikecase <mikecase@chromium.org>
Tue, 7 Apr 2015 19:45:14 +0000 (7 12:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Apr 2015 19:45:50 +0000 (7 19:45 +0000)
treec2bc05a56d46d62ebdc2a8b3b55bea6fc73119b6
parent9a4f22dbb7266733c40a632ece2ddc7eaf56e6ac
Add new GN junit binary template and new GYP java binary template.

Adds a new junit_binary template for gyp which makes it easy to
make new Junit test suites by setting a lot of the options and
necessary dependencies for you.

Also, adds a new java_binary.gypi file which uses the
create_java_binary_script.py similiar to how the java_binary
GN template works when main_class is specified. This lets
GYP and GN work similiar when building a junit binary, so
our test runner can run them the same way.

Finally, because of the slightly different way were now running
the junit binary, the java classpath contains all of the jars
instead of just the test jar (before we were running
java -jar test_jar.jar which set the classpath to just be
test_jar.jar). Therefore, we can simplify things and just look
in the classpath for the paths to the Robolectric dependencies
when running Robolectric junit tests.

BUG=

Review URL: https://codereview.chromium.org/1057783002

Cr-Commit-Position: refs/heads/master@{#324093}
build/android/pylib/junit/test_runner.py
build/config/android/rules.gni
build/host_jar.gypi
chrome/android/BUILD.gn
content/public/android/BUILD.gn
testing/android/junit/BUILD.gn
testing/android/junit/java/src/org/chromium/testing/local/JunitTestArgParser.java
testing/android/junit/java/src/org/chromium/testing/local/JunitTestMain.java
testing/android/junit/java/src/org/chromium/testing/local/LocalRobolectricTestRunner.java
testing/android/junit/java/src/org/chromium/testing/local/RobolectricClasspathDependencyResolver.java [new file with mode: 0644]