Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4311)

Unified Diff: build/android/gyp/create_java_binary_script.py

Issue 1913593002: Enable emma code coverage for JUnit testcases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/create_java_binary_script.py
diff --git a/build/android/gyp/create_java_binary_script.py b/build/android/gyp/create_java_binary_script.py
index 721e96f8cfe6e569f78f48424060936fc68da2dd..c5174b4ca22271cb19873aefdf9f0c5da18ccb07 100755
--- a/build/android/gyp/create_java_binary_script.py
+++ b/build/android/gyp/create_java_binary_script.py
@@ -37,6 +37,7 @@ if os.getcwd() != self_dir:
classpath = [os.path.join(offset, p) for p in classpath]
bootclasspath = [os.path.join(offset, p) for p in bootclasspath]
java_cmd = ["java"]
+java_cmd.append("-noverify")
BigBossZhiling 2016/04/22 21:37:02 Otherwise emma will run into a werid error.
if bootclasspath:
java_cmd.append("-Xbootclasspath/p:" + ":".join(bootclasspath))
java_cmd.extend(
@@ -63,6 +64,8 @@ def main(argv):
classpath = [options.jar_path]
for cp_arg in options.classpath:
classpath += build_utils.ParseGypList(cp_arg)
+ classpath += \
+ ['../../third_party/android_tools_internal/sdk/tools/lib/emma.jar']
BigBossZhiling 2016/04/22 21:37:02 After talking to Andrew, he said that since I don'
jbudorick 2016/04/22 21:38:24 I don't think we should be adding this uncondition
mikecase (-- gone --) 2016/04/22 23:51:45 Do you need this in the classpath when running the
BigBossZhiling 2016/04/23 01:00:55 Yes, we need this classpath when we run the test,
BigBossZhiling 2016/04/26 00:01:46 I took away my change and tried to run junit tests
agrieve 2016/04/26 00:08:01 I meant to hardcode it in the .gni file here: http
bootclasspath = []
for bootcp_arg in options.bootclasspath:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698