summaryrefslogtreecommitdiffstats
path: root/base/test
diff options
context:
space:
mode:
authorjbudorick <jbudorick@chromium.org>2015-04-27 14:13:31 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-27 21:14:11 +0000
commit4d64d862917d9cd9e045e95c68a3dd984d4eabcd (patch)
treea1768b18c27994ef8c60e8e79ec0d60937fb446e /base/test
parentb9bfea7758f5fbda076d5873f5cf10a5f44598cf (diff)
downloadchromium_src-4d64d862917d9cd9e045e95c68a3dd984d4eabcd.zip
chromium_src-4d64d862917d9cd9e045e95c68a3dd984d4eabcd.tar.gz
chromium_src-4d64d862917d9cd9e045e95c68a3dd984d4eabcd.tar.bz2
[Android] Add an out-of-app instrumentation driver APK. (RELAND)
BUG=444049 Review URL: https://codereview.chromium.org/1060933003 Cr-Commit-Position: refs/heads/master@{#327118}
Diffstat (limited to 'base/test')
-rw-r--r--base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java b/base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java
index a104831..8a3395a 100644
--- a/base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java
+++ b/base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java
@@ -14,10 +14,12 @@ import junit.framework.TestCase;
import junit.framework.TestResult;
import org.chromium.base.test.util.MinAndroidSdkLevel;
+import org.chromium.test.reporter.TestStatusListener;
import java.util.ArrayList;
import java.util.List;
+// TODO(jbudorick): Add support for on-device handling of timeouts.
/**
* An Instrumentation test runner that checks SDK level for tests with specific requirements.
*/
@@ -88,7 +90,7 @@ public class BaseInstrumentationTestRunner extends InstrumentationTestRunner {
@Override
protected AndroidTestRunner getAndroidTestRunner() {
- return new AndroidTestRunner() {
+ AndroidTestRunner runner = new AndroidTestRunner() {
@Override
protected TestResult createTestResult() {
SkippingTestResult r = new SkippingTestResult();
@@ -96,6 +98,8 @@ public class BaseInstrumentationTestRunner extends InstrumentationTestRunner {
return r;
}
};
+ runner.addTestListener(new TestStatusListener(getContext()));
+ return runner;
}
/**