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

Unified Diff: build/android/ant/apk-instr.xml

Issue 20210002: [Android] Sets up a coverage system for java using EMMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes unnecessary option, cleans up some string formatting Created 7 years, 5 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 | build/android/ant/apk-package.xml » ('j') | build/android/emma_html_output.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/ant/apk-instr.xml
diff --git a/build/android/ant/apk-instr.xml b/build/android/ant/apk-instr.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e04eba74d09b79426a4ad14d82efec473bc5e01b
--- /dev/null
+++ b/build/android/ant/apk-instr.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2013 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+-->
+
+<project default="-instr">
+ <property name="classes.dir" location="${CLASSES_DIR}" />
+ <property name="classes.instr.dir" location="${CLASSES_INSTR_DIR}" />
+ <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
+
+ <property name="emma.coverage.absolute.file" location="${EMMA_COVERAGE_FILE}" />
+
+ <!-- jar file from where emma tasks are loaded -->
+ <path id="emma.antlibs">
+ <pathelement path="${sdk.dir}/tools/lib/emma_ant.jar" />
+ <pathelement path="${sdk.dir}/tools/lib/emma.jar" />
+ </path>
+
+ <taskdef resource="emma_ant.properties" classpathref="emma.antlibs" />
+
+ <!-- Instruments the output classes for coverage testing. -->
+ <target name="-instr">
+ <emma enabled="true">
+ <instr mode="copy"
+ instrpath="${classes.dir}"
+ outdir="${classes.instr.dir}"
+ metadatafile="${emma.coverage.absolute.file}">
+ <!-- TODO: Filter things here -->
+ </instr>
+ </emma>
+ </target>
+</project>
« no previous file with comments | « no previous file | build/android/ant/apk-package.xml » ('j') | build/android/emma_html_output.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698