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

Side by Side Diff: build/config/android/internal_rules.gni

Issue 1913593002: Enable emma code coverage for JUnit testcases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/zip.gni") 7 import("//build/config/zip.gni")
8 import("//third_party/ijar/ijar.gni") 8 import("//third_party/ijar/ijar.gni")
9 9
10 assert(is_android) 10 assert(is_android)
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 "--depfile", 233 "--depfile",
234 rebase_path(depfile, root_build_dir), 234 rebase_path(depfile, root_build_dir),
235 "--output", 235 "--output",
236 rebase_path(java_script, root_build_dir), 236 rebase_path(java_script, root_build_dir),
237 "--classpath=@FileArg($_rebased_build_config:java:full_classpath)", 237 "--classpath=@FileArg($_rebased_build_config:java:full_classpath)",
238 "--jar-path", 238 "--jar-path",
239 rebase_path(_jar_path, root_build_dir), 239 rebase_path(_jar_path, root_build_dir),
240 "--main-class", 240 "--main-class",
241 _main_class, 241 _main_class,
242 ] 242 ]
243 if (emma_coverage) {
244 args += [
245 "--classpath",
246 rebase_path(
247 "../../third_party/android_tools_internal/sdk/tools/lib/emma.jar",
agrieve 2016/04/26 14:51:10 Use // syntax here: //third_party/android_tools_in
BigBossZhiling 2016/04/26 17:35:58 Done.
248 root_out_dir),
249 ]
250 args += [
251 "--noverify",
252 "true",
253 ]
254 } else {
255 args += [
256 "--noverify",
257 "false",
258 ]
259 }
243 if (defined(invoker.wrapper_script_args)) { 260 if (defined(invoker.wrapper_script_args)) {
244 args += [ "--" ] + invoker.wrapper_script_args 261 args += [ "--" ] + invoker.wrapper_script_args
245 } 262 }
246 if (defined(invoker.bootclasspath)) { 263 if (defined(invoker.bootclasspath)) {
247 inputs += [ invoker.bootclasspath ] 264 inputs += [ invoker.bootclasspath ]
248 args += [ 265 args += [
249 "--bootclasspath", 266 "--bootclasspath",
250 rebase_path(invoker.bootclasspath, root_build_dir), 267 rebase_path(invoker.bootclasspath, root_build_dir),
251 ] 268 ]
252 } 269 }
(...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 2237
2221 args = [ 2238 args = [
2222 "--depfile", 2239 "--depfile",
2223 rebase_path(depfile, root_build_dir), 2240 rebase_path(depfile, root_build_dir),
2224 "--script-output-path", 2241 "--script-output-path",
2225 rebase_path(generated_script, root_build_dir), 2242 rebase_path(generated_script, root_build_dir),
2226 ] 2243 ]
2227 args += test_runner_args 2244 args += test_runner_args
2228 } 2245 }
2229 } 2246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698